Category Curve and edge geometry, Object ProBsplinedata

Function ProBsplinedataGet


Description
Retrieves information from a B-spline data structure.

NOTE:

The function ignores the output arguments with null pointers.

Synopsis
#include <ProCurvedata.h>
ProErrorProBsplinedataGet(
ProCurvedata* p_curve
/* (In)
The B-spline data structure.
*/
int* p_degree
/* (Out)
The basis function's degree.
*/
double** p_params
/* (Out)
The pointer to a ProArray of knots on the parameter line. Free this output using ProArrayFree().
*/
double** p_weights
/* (Out)
In the case of rational B-splines, this is the pointer to a ProArray of the same dimension as the array of c_pnts. Otherwise, this is NULL. Free this output using ProArrayFree().
*/
ProPoint3d** p_c_pnts
/* (Out)
The pointer to a ProArray of knots on control points. Free this output using ProArrayFree().
*/
int* p_num_knots
/* (Out)
The size of the params array.
*/
int* p_num_c_points
/* (Out)
The size of c_pnts (and weights, if not NULL).
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_INVALID_TYPEThe specified data is not a B-spline data structure.
PRO_TK_BAD_INPUTSThe input argument is invalid.

Sample Code References:

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