|
Usage: off2m [options] [input_file] Convert files in OFF format to 'm' format for display in LiveGraphics3D. If input_file is not given the program reads from standard input. Options -h,--help this help message (run 'off_util -H help' for general help) --version version information -d <dgts> number of significant digits (default 16) or if negative then the number of digits after the decimal point -t <type> display type for faces 0 - polygons, 1 - triangulate polygons (default) -o <file> write output to file (default: write to standard output) Coloring Options (run 'off_util -H color' for help on color formats) Note: transparency (alpha) is ignored. color name 'invisible' not allowed -V <col> vertex color (default: 1.0,0.5,0.0) -E <col> edge color (default: 0.8,0.6,0.8) -F <col> face color (default: 0.8,0.8,0.9) -B <col> background color (default: 0.9,0.9,0.9) -l let LiveGraphics3D do the coloring itself Scene options -v <size> vertex sphere size (default: 0.02 of bounding box diagonal) -e <size> frame model edge thickness size (default: 0.01 of bounding box diagonal if vertex sphere is 0, else vertex_rad/1.5) -x <elms> hide elements. The element string can include v, e and f to hide vertices, edges and faces -Y <view> specify the Live3D ViewPoint in form 'X,Y,Z'
off_util cube | off2m > cube.m
off_util cube | off2m -l > cube.m
off_util cube | off2m -X ve -e 0.01 -E red -V blue > cube.m
Converting off files to m files is for the most part obsolete and is here only as a legacy program. Converting m files to off format using m2off might be what you want.
Many years ago, I put together an off2m testing package which can be downloaded and used to view the off2m output.
LiveGraphics3D used java and is now considered obsolete. It may still work under a browser that run java apps such as Microsoft Edge in Internet Explorer mode. The development page is here: LiveGraphics3D Site.
Up:
Programs and Documentation
Next:
vr1tovr2 - Convert vrml 1.0 to vrml 2.0 via vrml1tovrml2.exe