cyl2rect

NAME

cyl2rect - converts the coordinates of a point, line or triangle cloud from cylindrical to rectangular.

SYNOPSIS

cyl2rect [-l|--line] [-p INT|--precision INT] [-?|-h|--help]

DESCRIPTION

cyl2rect converts the coordinates of a point, line or triangle cloud from cylindrical to rectangular. The origin is (0,0,0) and the axis of the cylinder is 'z' (use 'translate' to change the origin and 'rotate' to change the orientation). The cylindrical coordinates are 'r' (radius), 'a' (azimuth), 'z' (height). Angles are expressed in radian (use 'scale' to change the unit). The program takes its input from the standard input and returns the result to the standard output.

OPTIONS

-l,--line

for 'line files' with 2 points on each line

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Refer to the manual page

AUTHORS

Written by Pierre Smars (first version: 2013)

BUGS

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

COPYRIGHT

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

rect2cyl(1), translate(1), rotate(1), scale(1), view_pt(1), view_li(1), view_tri(1)

Pierre SMARS (tools, home page)