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

#include <occtl_mesh.h>

Collaboration diagram for occtl_mesh_triangle_components_options:

Public Attributes

uint32_t struct_version
 
const void * p_next
 
occtl_node_id_t root
 
double max_normal_angle
 
int32_t include_opposite_normals
 

Detailed Description

Options for occtl_mesh_triangle_components.

Components are grown across triangle adjacency when neighbouring triangle normals differ by no more than max_normal_angle. When include_opposite_normals is non-zero, normals with opposite signs are treated as equivalent by comparing abs(dot(n0,n1)); this is useful for imported triangle soups with inconsistent winding.

Member Data Documentation

◆ include_opposite_normals

int32_t occtl_mesh_triangle_components_options::include_opposite_normals

0/1; compare absolute normal dot product. Default 1.

◆ max_normal_angle

double occtl_mesh_triangle_components_options::max_normal_angle

Maximum normal angle in radians. Default OCCTL_ANGLE_1_DEG_RAD (1 degree).

◆ p_next

const void* occtl_mesh_triangle_components_options::p_next

Reserved; set to NULL.

◆ root

occtl_node_id_t occtl_mesh_triangle_components_options::root

Root node to analyse, or OCCTL_NODE_ID_INVALID for whole graph.

◆ struct_version

uint32_t occtl_mesh_triangle_components_options::struct_version

Must be OCCTL_MESH_TRIANGLE_COMPONENTS_OPTIONS_VERSION_1.


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