formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Spline
Description
Creates 2nd or 3rd degree b-spline using control points and knots. knots are optional. If passed, the knot array must contain exactly ncpts + degree + 1 knot values, where knot[i-1] <= knot[i] <= knot[i+1]. For open splines, there must be knot multiplicity at the start and end. model_type determines if a smooth or facetted spline is created.
Plugin Prototype
fzrt_error_td fz_objt_cnstr_spline(
fzrt_int | windex, |
cpts, | |
fzrt_int | ncpts, |
fzrt_int | degree, |
double * | knots, |
closed, | |
model_type, | |
refn_opts, | |
obj ) |
Parameters
windex [Input]
project window index
cpts [Input]
control points
ncpts [Input]
number of control points
Range: ncpts >= 3 if degree is 2, 4 if degree is 3
degree [Input]
degree
Range: 2 <= degree <= 3
knots [Input, Optional]
knot array. If passed in, the knot array must contain (ncpts + degree + 1) items, where knot[i-1] <= knot[i] <= knot[i+1]. For open splines, there must be multiplicity at the start and end.
closed [Input]
open or closed spline. If TRUE, the spline is closed.
model_type [Input]
model type
refn_opts [Input, Optional]
display resolution options. For defaults see fz_attr_refn_parm_enum
obj [Result]
new object
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
,
Function Set
Defined in