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

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 |
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.
| occtl_node_id_t occtl_edge_view::end_vertex |
End-vertex node id.
| uint32_t occtl_edge_view::face_count |
Number of faces incident to this edge.
| int32_t occtl_edge_view::has_curve |
1 if the edge carries a 3D curve.
| uint32_t occtl_edge_view::internal_vertex_count |
Internal vertex count (excluding start/end).
| int32_t occtl_edge_view::is_boundary |
1 if the edge is on the boundary of exactly one face.
| int32_t occtl_edge_view::is_closed |
1 if the start vertex equals the end vertex.
| int32_t occtl_edge_view::is_degenerated |
1 if marked degenerated.
| int32_t occtl_edge_view::is_manifold |
1 if the edge is shared by at most two faces.
| const void* occtl_edge_view::p_next |
Reserved; must be NULL.
| int32_t occtl_edge_view::same_parameter |
1 if the SameParameter flag is set.
| int32_t occtl_edge_view::same_range |
1 if the SameRange flag is set.
| occtl_node_id_t occtl_edge_view::start_vertex |
Start-vertex node id.
| uint32_t occtl_edge_view::struct_version |
INPUT — caller declares which version they understand.
| double occtl_edge_view::t_max |
Parameter range maximum.
| double occtl_edge_view::t_min |
Parameter range minimum.
| double occtl_edge_view::tolerance |
Geometric tolerance.