OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_mesh_triangle_component_summary Struct Reference

#include <occtl_mesh.h>

Collaboration diagram for occtl_mesh_triangle_component_summary:

Public Attributes

uint32_t component_id
 
uint32_t triangle_count
 
double area
 
occtl_point3_t centroid
 
occtl_vector3_t normal
 
occtl_aabb3_t bounds
 

Detailed Description

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.

Member Data Documentation

◆ area

double occtl_mesh_triangle_component_summary::area

Total triangle area.

◆ bounds

occtl_aabb3_t occtl_mesh_triangle_component_summary::bounds

Axis-aligned bounds of all component triangle vertices.

◆ centroid

occtl_point3_t occtl_mesh_triangle_component_summary::centroid

Area-weighted component centroid.

◆ component_id

uint32_t occtl_mesh_triangle_component_summary::component_id

Dense 0-indexed component ID.

◆ normal

occtl_vector3_t occtl_mesh_triangle_component_summary::normal

Area-weighted average normal, unit length when non-degenerate.

◆ triangle_count

uint32_t occtl_mesh_triangle_component_summary::triangle_count

Number of triangles in this component.


The documentation for this struct was generated from the following file: