API 文件集 > Surface geometry > Object ProBsplinesrfdata > Function ProBsplinesrfdataInit
Function ProBsplinesrfdataInit
Description
Initializes the B-spline surface data structure.
Synopsis
#include <ProSurfacedata.h>
ProBsplinesrfdataInit
(
int deg[2]
/* (In)
The basis function's degrees (in the U and V directions).
*/
double* u_par_arr
/* (In)
The ProArray of knots on the parameter line, U.
*/
double* v_par_arr
/* (In)
The ProArray of knots on the parameter line, V.
*/
double* wghts_arr
/* (In)
In the case of rational B-splines, this is a ProArray of the same dimension as the array of c_point_arr. Otherwise, this is NULL.
*/
Pro3dPnt* c_point_arr
/* (In)
The ProArray of control points.
*/
int num_u
/* (In)
The size in U.
*/
int num_v
/* (In)
The size in V.
*/
int num_c_point
/* (In)
The number of control points.
*/
ProSurfaceshapedata* p_surf_shape
/* (Out)
The B-spline surface.
*/
)
Returns
The function successfully initialized the B-spline surface.
One or more of the input arguments are invalid.
The degree is greater than effectively supported maximum (3).
The end knots do not have degree + 1 multiplicity.
Some of the inner knots are multiple.
Sample Code References
User Guide References
這是否有幫助?