ptdist - find, for each point of a point cloud, the distance to a given shape
ptdist [-p DOUBLE DOUBLE DOUBLE|--point DOUBLE DOUBLE DOUBLE [-tm DOUBLE|--threshold-min DOUBLE] [-tM DOUBLE|--threshold-max DOUBLE] [-o|--old] [-n|--new]
or
ptdist |-l DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE|--line DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE [-tm DOUBLE|--threshold-min DOUBLE] [-tM DOUBLE|--threshold-max DOUBLE] [-o|--old] [-n|--new] [-r|--ray]
or
ptdist |-f DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE|--face DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE [-tm DOUBLE|--threshold-min DOUBLE] [-tM DOUBLE|--threshold-max DOUBLE] [-o|--old] [-n|--new]
or
ptdist [-?|-h|--help]
ptdist find, for each point of a point cloud, the distance to a given shape: a point, a line or a plane. It takes its input from the standard input and returns the result to the standard output.
Returns the manual page
compute distance to point X Y Z
compute distance to line passing by X Y Z with direction DX DY DZ
compute distance to plane passing by X Y Z with normal NX NY NZ
Returns the coordinates of the original point. If both option --old and --new are set, the old point is always output first. The distance is always returned last.
Returns the coordinates of the projection of the point on the centre, ray, line or plane.
Only used when option --line is set. A ray is used instead of a line. If the ray points away from the point, the distance is the distance between the centre and the point.
points at a distance smaller than DOUBLE will be assigned DOUBLE
points at a distance larger than DOUBLE will be assigned DOUBLE
Written by Pierre Smars (first version: 2011)
Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.
Copyright (C) 2016 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.
tridist(1)