project

NAME

project - project point, line or triangle clouds on a plane

SYNOPSIS

project [-c FILE|--camera FILE] [-cx DOUBLE] [-cy DOUBLE] [-cz DOUBLE] [-px DOUBLE] [-py DOUBLE] [-pz DOUBLE] [-d INTEGER|--dimension INTEGER] [-pa|--parallel] [-a DOUBLE|--aperture DOUBLE] [-p INT|--precision INT] [-?|-h|--help]

DESCRIPTION

project projects point, line or triangle clouds on a plane. The parameters of the projections may be specified in various ways. By default, the projection is central: c (cx cy cz) is the centre, p-c is the direction of projection and ||p-c|| the focal distance. If -pa option is selected, the projection is parallel and the direction is given by p-c. If a camera file is used (option -c), no other parameter is needed. if an angle aperture is given (option -a), points outside this angle will not be projected. It takes its input from the standard input and returns the result to the standard output.

OPTIONS

-l,--line

for 'line clouds' with 2 points on each line

-d INTEGER, --dimension INTEGER

return a cloud in 2D (2) or 3D (3: default)

-c FILE, --camera FILE

camera file

-cx DOUBLE

x coordinate of the centre of projection (default: 0)

-cy DOUBLE

y coordinate of the centre of projection (default: 0)

-cz DOUBLE

z coordinate of the centre of projection (default: 0)

-px DOUBLE

x coordinate of the focus point (default: 0)

-py DOUBLE

y coordinate of the focus point (default: 0)

-pz DOUBLE

z coordinate of the focus point (default: 1)

-pa,--parallel

parallel projection (direction given by p-c)

-a DOUBLE, --angle DOUBLE

limit the output to points inside cone of angle (in degree)

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Returns the manual page

AUTHORS

Written by Pierre Smars (first version: 2007)

BUGS

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

COPYRIGHT

Copyright (C) 2015 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

view_pt(1), view_li(1), view_tri(1)

Pierre SMARS (tools, home page)