Category Curve and edge geometry, Object ProBsplinedata

Function ProBsplinedataInit


Description
Initializes a B-spline data structure.
Synopsis
#include <ProCurvedata.h>
ProErrorProBsplinedataInit(
int degree
/* (In)
The basis function's degree.
*/
double* params
/* (In)
The ProArray of knots on the parameter line.
*/
double* weights
/* (In)
In the case of rational B-splines, this is a ProArray of the same dimension as the array of c_pnts. Otherwise, this is NULL.
*/
ProPoint3d* c_pnts
/* (In)
The ProArray of knots on control points.
*/
int num_knots
/* (In)
The size of the params array.
*/
int num_c_points
/* (In)
The size of the c_pnts (and weights, if not NULL).
*/
ProCurvedata* p_curve
/* (Out)
The B-spline data structure.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the B-spline data structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_BSPL_UNSUITABLE_DEGREEThe degree is greater than the effectively supported maximum (3).
PRO_TK_BSPL_NON_STD_END_KNOTSThe end knots do not have degree + 1 multiplicity.

Manual References:

  1. Interface: Importing Features: Adding Edges

Sample Code References:

  1. pt_examples ( TestAnalysisSrfCurve.c )
  2. pt_examples ( TestGeomdata.c )