Up
Next
off2m - converts an OFF file for LiveGraphics3D
off2m [options] input_file
Convert files in OFF format to 'm' format for display in
LiveGraphics3D .
- input_files
- input files in OFF format, or if not given the program reads from standard input
- -h
- program help
- -v <size>
- vertex sphere size (default: 0.02)
- -e <size>
- frame model edge thickness size (default: 0.001)
- -V <col>
- default vertex colour, in form r_val,g_val,b_val (values 0.0-1.0,
or 0-255) or hex xFFFFFF (default: 0.0,0.0,0.0)
- -E <col>
- colour for edges, in form r_val,g_val,b_val
(values 0.0-1.0, or 0-255) or hex xFFFFFF, or
'd' to use digons for edges, 'f' to use face colour for edges
(default: 0.0,0.0,0.0)
- -F <col>
- default face colour, in form r_val,g_val,b_val (values 0.0-1.0,
or 0-255) or hex xFFFFFF (default: 0.5,0.5,0.5)
- -X <elems>
- include elements. The element string can include v, e and f
to include, respectively, vertices, edges and faces
(default: ef - edges and faces)
- -l
- let LiveGraphics3D do the colouring itself
- -o <file>
- write output to file, if this option is not used
the program writes to standard output
Scene Options
- -B <col>
- background colour, in form r_val,g_val,b_val (values 0.0-1.0,
or 0-255) or hex xFFFFFF (default: 1.0,1.0,1.0)
Precision Options
- -d <dgts>
- number of significant digits for output (default 17) or if
negative then the number of digits after the decimal point
Make a cube for display in LiveGraphics3D
unipoly cube | off2m > cube.m
Use LiveGraphics3D colouring
unipoly cube | off2m -l > cube.m
Make a thickened red cube frame with blue vertices
unipoly cube | off2m -X ve -e 0.01 -E 1.0,0.0,0.0 -V 0.0,0.0,1.0 > cube.m
off2m was written by
Roger Kaufman.
Roger has made an
example LG3D page
and also prepared a
off2m testing package
which can be downloaded and used to view the off2m output.
LiveGraphics3D is free for non-commercial use and can be downloaded
from the
LiveGraphics3D Site.
Up:
Programs and Documentation
Next:
off2eig - converts an OFF file to EIG format
Antiprism Documentation 12.6.2007 -
http://www.antiprism.com/