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

#include <occtl_mesh.h>

Collaboration diagram for occtl_mesh_triangle_buffers_view:

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
 

Detailed Description

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.

Member Data Documentation

◆ face_count

size_t occtl_mesh_triangle_buffers_view::face_count

Number of faces that contributed triangulations.

◆ node_count

size_t occtl_mesh_triangle_buffers_view::node_count

Number of copied triangle vertices.

◆ nodes

const double* occtl_mesh_triangle_buffers_view::nodes

xyz interleaved doubles, length 3 * node_count.

◆ root

occtl_node_id_t occtl_mesh_triangle_buffers_view::root

Root used for extraction, or OCCTL_NODE_ID_INVALID for whole graph.

◆ triangle_count

size_t occtl_mesh_triangle_buffers_view::triangle_count

Number of copied triangles.

◆ triangles

const uint32_t* occtl_mesh_triangle_buffers_view::triangles

0-indexed triplets into nodes, length 3 * triangle_count.


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