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

#include <occtl_mesh.h>

Public Attributes

uint32_t struct_version
 
const void * p_next
 
const double * nodes
 
size_t node_count
 
const uint32_t * triangles
 
size_t triangle_count
 
double deflection
 

Detailed Description

Input buffers for occtl_mesh_from_buffers.

Nodes are xyz-interleaved doubles. Triangles are 0-indexed triplets into nodes, matching the rest of the public mesh ABI. The library copies the buffers into an OCCT #Poly_Triangulation owned by a new graph, so the caller may free the input arrays after the function returns.

Member Data Documentation

◆ deflection

double occtl_mesh_from_buffers_options::deflection

Stored triangulation deflection. Must be finite and non-negative.

◆ node_count

size_t occtl_mesh_from_buffers_options::node_count

Number of vertices in nodes.

◆ nodes

const double* occtl_mesh_from_buffers_options::nodes

xyz interleaved doubles, length 3 * node_count. Borrows it.

◆ p_next

const void* occtl_mesh_from_buffers_options::p_next

Reserved for extensions; must be NULL.

◆ struct_version

uint32_t occtl_mesh_from_buffers_options::struct_version

Must be OCCTL_MESH_FROM_BUFFERS_OPTIONS_VERSION_1.

◆ triangle_count

size_t occtl_mesh_from_buffers_options::triangle_count

Number of triangles in triangles.

◆ triangles

const uint32_t* occtl_mesh_from_buffers_options::triangles

0-indexed triplets, length 3 * triangle_count. Borrows it.


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