mvg
A graphics translator which extracts components from an input file and creates a MotionView graphics file.
Syntax
mvg inputfile [outputfile] [[-m merged_name] [-c component_name] ...] ... [-f filename] [-a angle]
Application
Translators
Inputs
- inputfile
- The name of the input file. The inputfile can be any of the following formats:
- Wavefront
- .obj file HyperMesh ASCII database file.
- PDGS file
- Stereolithography file (.stl, .sla).
- outputfile
- The name of the MotionView graphics (.g) file to be created.
- -m
- Merge the following components into a single real component image named merged_name. A part can have only one real component image. If you wish to attach several components from the input file to a single part, you must merge them.
- -c
- Extract the specified component from the input file. Multiple components can be merged together to create a single real component image in MotionView.
- -f
- Read the component list from the specified file.
- -a
- Specify angle for edge detection. MotionView creates a smooth surface from faceted data by averaging normals at the vertices. If the angle between two facets is less than a, then the vertex normals are not averaged at the shared edge. This produces a distinct edge between the facets. The default is 135.
Example
mvg sample.obj
mvg sample.obj sample.g -m carbody
-c metal -c glass
mvg sample.obj sample.g -f comp.lst
Comments
See *AddObject() in MotionScript Reference for more information on attaching real component images to parts. The mvg custom wizard is included in the installation but is not registered by default.
*RegisterCustomWizard(mvg, "MVG", { getenv("ALTAIR_HOME") + "/utility/mbd/custom_wizards/mvg.mdl" })