CAD Exchanger SDK allows to compute some key properties of a 3D model:
Each property can be computed either for an entire model (ModelData_Model) or for any assembly, part, instance, or part representation.
Bounding box is an axis-aligned bounding box which encompasses a 3D model (or its component).
The following example demonstrates computation of a part's bounding box:
In addition to traditional bounding boxes, CAD Exchanger also allows to compute minimum bounding box which is not necessarily axis-aligned:
aMinBox contains an axis-aligned box which would be returned if the part were transformed with the help of returned transformation.
Surface area only can be computed for parts having a solid or sheet body in their B-Rep representation.
The following example demonstrates computation of a part's surface area:
Volume can only be computed for parts having a solid body in their B-Rep representation.
The following example demonstrates computation of a part's volume:
Centroid (center of mass) can only be computed for parts having B-Rep representations.
The following example demonstrates computation of a part's centroid:
The wall thickness algorithm is currently available in the Manufacturing Toolkit. Refer to Wall thickness calculation for details.
Refer to Measurement examples.