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

#include <occtl_curves.h>

Collaboration diagram for occtl_curve_bspline_create_info:

Public Attributes

uint32_t struct_version
 
const void * p_next
 
const occtl_point3_tpoles
 
size_t pole_count
 
const double * weights
 
const double * knots
 
const int32_t * multiplicities
 
size_t knot_count
 
int32_t degree
 
int32_t is_periodic
 

Detailed Description

Versioned create-info struct for B-spline curve construction.

Knots are in compact form (distinct values + multiplicities), which is OCCT's canonical representation. Arrays are borrowed for the duration of the occtl_curve_create_bspline call; they are not retained afterwards.

For a non-rational B-spline set weights to NULL. For a rational B-spline (NURBS) provide weights with pole_count entries; all values must be > 0.

Member Data Documentation

◆ degree

int32_t occtl_curve_bspline_create_info::degree

Polynomial degree; must be >= 1.

◆ is_periodic

int32_t occtl_curve_bspline_create_info::is_periodic

0 = non-periodic; 1 = periodic.

◆ knot_count

size_t occtl_curve_bspline_create_info::knot_count

Number of distinct knot values.

◆ knots

const double* occtl_curve_bspline_create_info::knots

[in] Borrows it; distinct knot values; count = knot_count.

◆ multiplicities

const int32_t* occtl_curve_bspline_create_info::multiplicities

[in] Borrows it; count = knot_count.

◆ p_next

const void* occtl_curve_bspline_create_info::p_next

Reserved for extensions; must be NULL.

◆ pole_count

size_t occtl_curve_bspline_create_info::pole_count

Number of poles.

◆ poles

const occtl_point3_t* occtl_curve_bspline_create_info::poles

[in] Borrows it; count = pole_count.

◆ struct_version

uint32_t occtl_curve_bspline_create_info::struct_version

Must be OCCTL_CURVE_BSPLINE_CREATE_INFO_VERSION_1.

◆ weights

const double* occtl_curve_bspline_create_info::weights

[in] Borrows it; count = pole_count when non-NULL. NULL -> non-rational; non-NULL -> rational (NURBS).


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