|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
#include <occtl_mesh.h>

Public Attributes | |
| uint32_t | component_id |
| uint32_t | triangle_count |
| double | area |
| occtl_point3_t | centroid |
| occtl_vector3_t | normal |
| occtl_aabb3_t | bounds |
Summary statistics for one normal-connected triangle component.
Area, centroid, average normal, and bounds are computed from the graph-owned aggregate triangle buffers. The centroid and normal are area-weighted. Degenerate components report zero area and a zero normal.
| double occtl_mesh_triangle_component_summary::area |
Total triangle area.
| occtl_aabb3_t occtl_mesh_triangle_component_summary::bounds |
Axis-aligned bounds of all component triangle vertices.
| occtl_point3_t occtl_mesh_triangle_component_summary::centroid |
Area-weighted component centroid.
| uint32_t occtl_mesh_triangle_component_summary::component_id |
Dense 0-indexed component ID.
| occtl_vector3_t occtl_mesh_triangle_component_summary::normal |
Area-weighted average normal, unit length when non-degenerate.
| uint32_t occtl_mesh_triangle_component_summary::triangle_count |
Number of triangles in this component.