carve_pt

NAME

carve_pt - select the points of a point cloud contained inside a cube.

SYNOPSIS

carve_pt [-f FILE|--file FILE] [-s|--select] [-?|-h|--help] xcenter ycenter zcenter side

or

carve_pt [-f FILE|--file FILE] [-s|--select] [-?|-h|--help] xmin ymin zmin xmax ymax zmax

DESCRIPTION

carve_pt carves a point cloud (or some associated data) using a cube defined by its centre point and its side dimension or by a box defined by its opposite corners. Use carve_pt with scale(1), rotate(1), rect2cyl(1), rect2sph(1) for more complex selections. Use pt2string(1) and select_pt(1) for even more complex selections. With option -f, this is not the point cloud which is carved but the data contained in FILE (scalar file, rgb file...). FILE must contain the same number of lines as the point cloud, but the number of values on one line is not restricted. The input point cloud is read from the standard input and the result is returned to the standard output.

OPTIONS

-f FILE,--file FILE

Data file to be carved. This option is likely to be always used after a first pass of the program to carve the point cloud.

-s,--select

Returns a scalar cloud of the same size as the point cloud (1: selected, 0:not selected). This scalar data can be used with select_pt(1), select_scal(1) or select_tri(1).

-h,--help,-?

Refer to the manual page.

AUTHORS

Written by Pierre Smars (first version: 2020)

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)