CAD Exchanger SDK allows to construct a 3D model bottom-up in a user's application. This can be used in order to export to a target format or to perform some operations inside the user's application (for instance to generate a polygonal representation from B-Rep and to explore its contents).
CAD Exchanger SDK does not pretend to be a full-fledged geometrical modeling kernel. Nonetheless available API allows to address many real-world application needs.
A single part can be constructed using either its precise definition (B-Rep representation) or approximated faceted definition (polygonal representation) or both. A part may also contain multiple polygonal representations to describe different levels of details (LOD's).
Refer to B-Rep modeling and Polygonal representation creation for details on how to create B-Rep and polygonal representations respectively.
The following example demonstrates how to create a model with a single part consisting of one B-Rep representation and one polygonal representation. The latter is created using a visualization mesher with fine granularity settings:
Applications working with complex assemblies may use available data model API in order to create hierarchical assembly structures, including shared elements (sub-assemblies or parts), adding transformation matrices, properties, material and/or color attributes.
The following example demonstrates creation of an assembly of two cylinder instances and export to the JT format:
Refer to Modeling.