Category Surface geometry, Object ProBsplinesrfdata

Function ProBsplinesrfdataInit


Description
Initializes the B-spline surface data structure.
Synopsis
#include <ProSurfacedata.h>
ProErrorProBsplinesrfdataInit(
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
PRO_TK_NO_ERRORThe function successfully initialized the B-spline surface.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_BSPL_UNSUITABLE_DEGREEThe degree is greater than effectively supported maximum (3).
PRO_TK_BSPL_NON_STD_END_KNOTSThe end knots do not have degree + 1 multiplicity.
PRO_TK_BSPL_MULTI_INNER_KNOTSSome of the inner knots are multiple.

Manual References:

  1. Interface: Importing Features: Adding Surfaces
  2. Interface: Importing Features: Adding Surfaces

Sample Code References:

  1. pt_examples ( TestGeomdata.c )