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

#include <occtl_curves.h>

Collaboration diagram for occtl_curve_approximated_info:

Public Attributes

uint32_t struct_version
 
const void * p_next
 
const occtl_point3_tpoints
 
size_t point_count
 
int32_t degree_min
 
int32_t degree_max
 
double tolerance
 
int32_t is_periodic
 

Detailed Description

Versioned create-info struct for curve approximation (fitting).

Fits a B-spline curve to the given points within the specified tolerance using OCCT's GeomAPI_PointsToBSpline. The resulting curve does not necessarily pass through the points; it approximates them.

Member Data Documentation

◆ degree_max

int32_t occtl_curve_approximated_info::degree_max

Maximum degree for the B-spline.

◆ degree_min

int32_t occtl_curve_approximated_info::degree_min

Minimum degree for the B-spline (>= 1).

◆ is_periodic

int32_t occtl_curve_approximated_info::is_periodic

0 = non-periodic; 1 = periodic (not yet supported).

◆ p_next

const void* occtl_curve_approximated_info::p_next

Reserved; must be NULL.

◆ point_count

size_t occtl_curve_approximated_info::point_count

Number of points to fit.

◆ points

const occtl_point3_t* occtl_curve_approximated_info::points

[in] Borrows it; count = point_count.

◆ struct_version

uint32_t occtl_curve_approximated_info::struct_version

Must be OCCTL_CURVE_APPROXIMATED_INFO_VERSION_1.

◆ tolerance

double occtl_curve_approximated_info::tolerance

Approximation tolerance in 3D.


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