ctmconv - file format converter for 3D models
Contents
Availability
ctmconv is designed to be portable, and is available for several different systems, including (but not
limited to): Windows, Mac OS X (10.3+), Linux and OpenSolaris.
Description
ctmconv is a 3D file converter that can convert 3D model files to and from several different formats.
The file infile is loaded, and then saved as outfile in the target file format.
The input and output file formats are determined from the file endings.
File Formats
The following 3D model file formats are supported: OpenCTM (.ctm), Stanford triangle format (.ply),
Stereolitography (.stl), 3D Studio (.3ds), COLLADA 1.4/1.5 (.dae), Wavefront geometry file (.obj),
LightWave object (.lwo), Geomview object file format (.off), VRML 2.0 - export only (.wrl).
Name
ctmconv - file format converter for 3D models
Options
The following options are available:
--scalearg Scale the mesh by a scalar factor.
--upaxisarg Set up axis (X, Y, Z, -X, -Y, -Z). If != Z, the mesh will be flipped.
--flip Flip triangle orientation.
--calc-normals If the source file does not contain any normals, calculate them.
--no-normals Do not export normals.
--no-texcoords Do not export texture coordinates.
--no-colors Do not export vertex colors.
--commentarg Set the file comment (default is to use the comment from the input file, if any).
--texfilearg Set the texture file name reference for the texture (default is to use the texture file
name reference from the input file, if any).
When exporting an OpenCTM file, the following options are also available:
--methodarg Select compression method (RAW, MG1, MG2).
--levelarg Set the compression level (0 - 9).
--vprecarg Set vertex precision (only for MG2).
--vprecrelarg Set vertex precision, relative method (only for MG2).
--nprecarg Set normal precision (only for MG2).
--tprecarg Set texture map precision (only for MG2).
--cprecarg Set color precision (only for MG2).
See Also
ctmviewer(1) ctmconv(1)
Synopsis
ctmconvinfileoutfile[options]
