formZ SDK | 5.0 API Reference | System | Nurbs Surface
Description
Creates a NURBS surface from control points, knots and weights. The control points are expected in a single array. (row major order) The weights are expected in a single array of doubles. (row major order) Weights, U knots, V knots are optional and NULL can be specified for defaults.
Plugin Prototype
fzrt_error_td fz_nsrf_create_nurbs_srf(
cpts, | |
double * | weights, |
fzrt_int | u_npts, |
fzrt_int | u_degree, |
double * | u_knots, |
closed_u, | |
fzrt_int | v_npts, |
fzrt_int | v_degree, |
double * | v_knots, |
closed_v, | |
srf ) |
Parameters
cpts [Input]
Control points
weights [Input, Optional]
Weights
u_npts [Input]
Number of points in U
u_degree [Input]
Degree in U
u_knots [Input, Optional]
Knots in U
closed_u [Input]
Closed in U
v_npts [Input]
Number of points in V
v_degree [Input]
Degree in V
v_knots [Input, Optional]
Knots in V
closed_v [Input]
Closed in V
srf [Result]
NURBS surface created
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
fz_nsrf_get_u_npts, fz_nsrf_get_control_points, fz_nsrf_get_u_knots,,
Function Set
Defined in