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

#include <occtl_topo.h>

Collaboration diagram for occtl_edge_view:

Public Attributes

uint32_t struct_version
 
const void * p_next
 
double t_min
 
double t_max
 
double tolerance
 
occtl_node_id_t start_vertex
 
occtl_node_id_t end_vertex
 
uint32_t internal_vertex_count
 
uint32_t face_count
 
int32_t has_curve
 
int32_t is_degenerated
 
int32_t is_closed
 
int32_t same_parameter
 
int32_t same_range
 
int32_t is_manifold
 
int32_t is_boundary
 

Detailed Description

Aggregate snapshot of an edge's scalar state.

Each aggregate view struct opens with struct_version and p_next. Callers must initialise the struct with the matching init function or INIT literal so the library can dispatch on the version they understand. Filler functions write scalars only, so view lifetime ends with the function call.

Fields after p_next are written by the library. All fields are caller-owned (no borrowed pointers): the snapshot is decoupled from the source graph and survives subsequent mutation.

The boolean fields are 0/1; the int32_t storage forbids bool per the ABI rules. Face-context queries (is_seam_on_face, is_boundary_on_face) are not part of the snapshot; use the occtl_topo_edge_is_*_on_face accessors for those.

Member Data Documentation

◆ end_vertex

occtl_node_id_t occtl_edge_view::end_vertex

End-vertex node id.

◆ face_count

uint32_t occtl_edge_view::face_count

Number of faces incident to this edge.

◆ has_curve

int32_t occtl_edge_view::has_curve

1 if the edge carries a 3D curve.

◆ internal_vertex_count

uint32_t occtl_edge_view::internal_vertex_count

Internal vertex count (excluding start/end).

◆ is_boundary

int32_t occtl_edge_view::is_boundary

1 if the edge is on the boundary of exactly one face.

◆ is_closed

int32_t occtl_edge_view::is_closed

1 if the start vertex equals the end vertex.

◆ is_degenerated

int32_t occtl_edge_view::is_degenerated

1 if marked degenerated.

◆ is_manifold

int32_t occtl_edge_view::is_manifold

1 if the edge is shared by at most two faces.

◆ p_next

const void* occtl_edge_view::p_next

Reserved; must be NULL.

◆ same_parameter

int32_t occtl_edge_view::same_parameter

1 if the SameParameter flag is set.

◆ same_range

int32_t occtl_edge_view::same_range

1 if the SameRange flag is set.

◆ start_vertex

occtl_node_id_t occtl_edge_view::start_vertex

Start-vertex node id.

◆ struct_version

uint32_t occtl_edge_view::struct_version

INPUT — caller declares which version they understand.

◆ t_max

double occtl_edge_view::t_max

Parameter range maximum.

◆ t_min

double occtl_edge_view::t_min

Parameter range minimum.

◆ tolerance

double occtl_edge_view::tolerance

Geometric tolerance.


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