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>
ProBsplinedataGet
(
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
The function successfully retrieved the information.
The specified data is not a B-spline data structure.
The input argument is invalid.
Sample Code References
도움이 되셨나요?