formZ SDK | 5.0 API Reference | System | Nurbs Curve

# fz_ncrv_create_nurbs_curve

Description

Create a NURBS curve from control points, knots and weights. Weights and knots are optional and NULL can be specified for defaults.

Plugin Prototype

fzrt_error_td fz_ncrv_create_nurbs_curve(

fz_xyz_td * | cpts,
fzrt_int | npts,
fzrt_int | degree,
double * | weights,
double * | knots,
fzrt_boolean | closed,
fz_nurbs_cur_ptr * | crv )

Parameters

cpts [Input]

Control points

npts [Input]

Number of control points

degree [Input]

Degree

weights [Input, Optional]

Weights

knots [Input, Optional]

Knots

closed [Input]

Closed

crv [Result]

NURBS curve created

Returns

Error codes

Availability

5.0.0.0

Example Files

util_ncrv.fsl

Function Set

fz_ncrv_fset

Defined in

fz_ncrv_api.h