cut_pt

NAME

cut_pt - cut a point cloud using a plane.

SYNOPSIS

cut_pt [-?|-h|--help] [-s DOUBLE|--section DOUBLE] [-i|--inverse] [-f|--flat] x1 y1 z1 x2 y2 z2 x3 y3 z3

or

cut_pt [-?|-h|--help] [-s DOUBLE|--section DOUBLE] [-i|--inverse] [-f|--flat] FILE

DESCRIPTION

cut_pt cuts a point cloud using a plane defined by 3 points. Those 3 points can be read from the argument line x1 y1 ... (1st option) or from a FILE (second option, format explained below). The input point cloud is read from the standard input and the result is returned to the standard output. If the option --flat is chosen, the points are projected on the plane. If the option --section is chosen, a section is made through the cloud (only keeping points closer to the plane than a given threshold). Without the option --section, the program eliminates the points on the side of the cutting plane pointed by the vector (p2-p1)x(p3-p1) or the points on the other side with the option --inverse.

3 POINTS FILE DATA FORMAT

> x1 y1 z1
> x2 y2 z2
> x3 y3 z3

OPTIONS

-h,--help,-?

Returns the manual page.

-f,--flat

Projects the selected points on the cutting plane.

-i,--inverse

Inverse the side of selection. Not used if -s is chosen.

-s DOUBLE, --section DOUBLE

Make a section, only keeping points closer than the threshold value defined by DOUBLE on the cutting plane.

AUTHORS

Written by Pierre Smars (first version: 2008)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

Copyright (C) 2020 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

cut_tri(1), view_pt(1)

Pierre SMARS (tools, home page)