obj2tri

NAME

obj2tri - converts an 'obj' file to a triangle mesh

SYNOPSIS

obj2tri [-c STRING|--color STRING] [-p INT|--precision INT] [-?|-h|--help]

DESCRIPTION

obj2tri converts the triangles of the 'obj' file (Wavefront's Advanced Visualizer format) to a Points&Forces triangle mesh. It takes its input from the standard input and returns the result to the standard output. The obj format specification can be found at http://en.wikipedia.org/wiki/Wavefront_.obj_file and the triangle mesh format in the manual page view_tri(1). Option -c allows to extract the color information of the obj file.

OPTIONS

-c STRING, --color STRING

Save color information in file STRING. If necessary, use see scale(1) to change the rgb format from 0-1 to 0-255.

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Refer to the manual page

AUTHORS

Written by Pierre Smars (first version: 2010)

BUGS

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

COPYRIGHT

Copyright (C) 2023 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_tri(1), obj2pt(1)

Pierre SMARS (tools, home page)