formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Spline

fz_objt_cnstr_multi_spline

Description

Creates multiple 2nd or 3rd degree b-spline curves. Each curve has "pts_per_seg" control points model_type determines if a smooth or facetted spline is created. Note, that the resulting object type is not "Spline" but "Composite Curve" since there are multiple curves.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_multi_spline(

fzrt_int

windex,

fz_xyz_td *

cpts,

fzrt_int

ncpts,

fzrt_int

degree,

fzrt_int

pts_per_seg,

fzrt_boolean

closed,

fz_objt_model_type_enum

model_type,

fz_attr_refn_ptr

refn_opts,

fz_objt_ptr *

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

pts_per_seg [Input]

control points per curve

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

util_objt_plin.fsl

See Also

,

Function Set

fz_model_fset


Defined in

fz_objt_plin_api.h