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

#include <occtl_mesh.h>

Collaboration diagram for occtl_mesh_triangle_component_triangles_view:

Public Attributes

const uint32_t * triangles
 
size_t triangle_count
 
uint32_t component_id
 
occtl_node_id_t root
 

Detailed Description

Borrowed graph-owned triangle-index view for one component.

Triangle indices refer to the aggregate triangle order returned by occtl_mesh_triangle_buffers for the same root/options. The buffer remains valid until graph is mutated, freed, or occtl_mesh_triangle_component_triangles is called again on the same graph.

Member Data Documentation

◆ component_id

uint32_t occtl_mesh_triangle_component_triangles_view::component_id

Component ID selected by the caller.

◆ root

occtl_node_id_t occtl_mesh_triangle_component_triangles_view::root

Root used for extraction, or OCCTL_NODE_ID_INVALID for whole graph.

◆ triangle_count

size_t occtl_mesh_triangle_component_triangles_view::triangle_count

Number of triangle indices.

◆ triangles

const uint32_t* occtl_mesh_triangle_component_triangles_view::triangles

Triangle indices in the component, length triangle_count.


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