off2dae - convert an OFF file to Collada (DAE) format
Usage: off2dae [options] [input_file]
Convert an OFF file to Collada DAE file format
Options
-h,--help this help message (run 'off_util -H help' for general help)
--version version information
-v <rad> radius of vertex spheres, or 'b' to have radius of balls
of the maximum size without overlap (default: ball_rad/15)
-e <rad> radius of edge cylinders (default: vertex_rad/1.5)
-V <col> default vertex colour, in form 'R,G,B,A' (3 or 4 values
0.0-1.0, or 0-255) or hex 'xFFFFFF' (default: 1.0,0.5,0.0)
-E <col> default edge colour, in form 'R,G,B,A' (3 or 4 values
0.0-1.0, or 0-255) or hex 'xFFFFFF', 'x' to hide implicit edges
(default: 0.8,0.6,0.8)
-F <col> default face colour, in form 'R,G,B,A' (3 or 4 values
0.0-1.0, or 0-255) or hex 'xFFFFFF' (default: 0.8,0.9,0.9)
-x <elms> hide elements. The element string can include v, e and f
to hide vertices, edges and faces
-t <disp> select face parts to display according to winding number from:
odd, nonzero (default), positive, negative, no_triangulation
(use native polygon display)
-m <maps> a comma separated list of colour maps used to transform colour
indexes, a part consisting of letters from v, e, f, selects
the element types to apply the map list to (default 'vef').
-K <lvl> a positive integer to specify the level of smoothing (using more
polygons) of the vertex spheres and edge cylinders (default: 3)
-d <dgts> number of significant digits (default 16) or if negative
then the number of digits after the decimal point
-o <file> write output to file (default: write to standard output)
Display icosahedron vertices as a ball pack
off2dae -x ef -v b ico > ico_pack.dae
Display an icosahedron without its faces
off2dae -x f ico > ico_frame.dae
Display an icosahedron without its vertex or edge elements
off2dae -x ve ico > ico_faces.dae
Display an icosahedron with thin vertex and edge elements
off2dae -v 0.01 -e 0.008 ico > ico_thin_elems.dae
Set default vertex colour, for uncoloured vertices, to red
off2dae -V red std_ico > ico_red_verts.dae
Increase smooth level to 5. This will make vertex and edge elements have
more polygons and so look smoother.
off2dae -K 5 ico > ico_smoother_elems.dae
The Collada format is large in scope, and programs that import it generally
only support a subset of its features. For an input file to be imported
correctly into a program it must therefore use a specific subset. The
off2dae output has been designed to be compatible with Sketchup
and Blender.
Sketchup will not import the surface smoothing that is applied to
vertex spheres and edge cylinders. If the elements of am model look
too "polyhedral" in Sketchup there are two solutions: use option
-K 5 (or higher) so the element models have more polygons;
import the vertex and edge elements together with option -x f
and use edge smoothing in Sketchup, then import the faces with option
-x ev.
Next:
off2obj - convert an OFF file to Wavefront OBJ format
Up:
Programs and Documentation
|