CAD Exchanger SDK
X3D Converter

Overview

X3D_Writer can write files in X3D format (ISO/IEC 19775).

Scope

  • polygonal representations
  • colors and materials
  • meta-data (names)
  • assembly structure
  • user-defined properties
  • textures

X3D Measurement Units

In accordance with the X3D format specification, 3D coordinates in X3D files are to be stored in meters. Therefore during export CAD Exchanger converts values in polygonal representation (stored in millimeters as explained here) multiplying them by 1000.

See also
Measurement Units

Parameters

Exporter Parameters

The X3D export parameters are controlled by X3D_WriterParameters. The following table contains a list of parameters for X3D export:

Parameter Default value Description
LengthUnit() Base_LU_Meters See Base_WriterParameters::LengthUnit().
PreferredLOD() ModelData_RM_Medium See Base_WriterParameters::PreferredLOD()

Known Limitations

  • MetadataString node is written in XML file with the value attribute with double quotes (i.e. value="string", similar to other attributes in X3D file) whereas the X3D XML specification requires a syntax value='"string"', i.e. a string in double quotes surrounded by single quotes. This is due to limitations of the currently used XML formatter.