formZ SDK | 5.0 API Reference | System | Nurbs Surface

fz_nsrf_create_nurbs_srf

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(

fz_xyz_td *

cpts,

double *

weights,

fzrt_int

u_npts,

fzrt_int

u_degree,

double *

u_knots,

fzrt_boolean

closed_u,

fzrt_int

v_npts,

fzrt_int

v_degree,

double *

v_knots,

fzrt_boolean

closed_v,

fz_nurbs_srf_ptr *

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

util_nsrf.fsl

See Also

fz_nsrf_get_u_npts, fz_nsrf_get_control_points, fz_nsrf_get_u_knots,,

Function Set

fz_nsrf_fset


Defined in

fz_nsrf_api.h