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

Public Attributes | |
| const double * | nodes |
| size_t | node_count |
| const uint32_t * | triangles |
| size_t | triangle_count |
| size_t | face_count |
| occtl_node_id_t | root |
Borrowed aggregate triangle-soup view over cached face triangulations.
The view copies all included face triangulations into graph-owned ABI buffers. Nodes are xyz interleaved doubles; triangle indices are 0-indexed into nodes. The buffers remain valid until graph is mutated, freed, or occtl_mesh_triangle_buffers is called again on the same graph.
When a Product / Occurrence hierarchy is traversed, accumulated graph locations are applied to copied vertices. The buffer is intentionally a triangle soup: vertices shared by neighboring faces may appear more than once.
| size_t occtl_mesh_triangle_buffers_view::face_count |
Number of faces that contributed triangulations.
| size_t occtl_mesh_triangle_buffers_view::node_count |
Number of copied triangle vertices.
| const double* occtl_mesh_triangle_buffers_view::nodes |
xyz interleaved doubles, length 3 * node_count.
| occtl_node_id_t occtl_mesh_triangle_buffers_view::root |
Root used for extraction, or OCCTL_NODE_ID_INVALID for whole graph.
| size_t occtl_mesh_triangle_buffers_view::triangle_count |
Number of copied triangles.
| const uint32_t* occtl_mesh_triangle_buffers_view::triangles |
0-indexed triplets into nodes, length 3 * triangle_count.