WriteGeom

DESCRIPTION

This module writes out a geometry data structure to a file. The file format can be either Inventor, Explorer (a variant of Inventor - see below) or VRML 2.0. For the Inventor and Explorer formats, the module offers the further choice of binary or ASCII transcription. Binary transcription produces a file which is much smaller, although an ASCII file can be useful for debugging the output of a geometry producing module.

Special codes may be embedded in the name of the output file using the % notation documented in strftime(3). In addition, the embedded code %n will be replaced by an incremented integer on each new firing of the module.

INPUTS

Port: Input
Type: Geometry
The geometry to be transcribed to disk.

WIDGETS

Port: Filename
Type: Text
The file into which the data will be written.

Port: Type
Type: Radio Box
Menu Item: ASCII
Menu Item: BINARY
Determines the type of transcription for the output file. This widget is hidden if the output format is VRML 2.0 (currently VRML is defined only as an ASCII format).

Port: Shared
Type: Radio Box
Menu Item: Explorer
Menu Item: Inventor
Menu Item: VRML 2.0
Output in IRIS Explorer shared geometry format (with cxSo style node and field names) or in Inventor geometry format (without cxSo). Using the former allows shared manipulation of the data when read back into an IRIS Explorer map; using the latter allows the data to be handled by other Inventor programs.

Output in VRML 2.0 allows the geometry to be used within a 3D scene which can be published on the World-Wide Web and viewed using a VRML browser.

KNOWN PROBLEMS

None.

SEE ALSO

cxunshare, ReadGeom, Render.
[Documentation Home]
© The Numerical Algorithms Group Ltd, Oxford UK. 2000