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

# fz_objt_edit_spline_parm_get

Description

Gets a parameter of a spline object. The parameters of a spline curve are the number of control points, the control points themselves and the closure. The number of control points can only be read, but not set. Control points can be read and set. When reading the control points, an array of fz_xyz_td must be preallocated to be at least "npts" fzrt_int. The array pointer is set in the data argument of . See fz_objt_spline_parm_enum for a code example. Setting the control points is done exactly the same way. That is, an array of npts items must be allocated and filled with the coordinate values of the control points. The array pointer is set in the data argument for .

Plugin Prototype

fzrt_error_td fz_objt_edit_spline_parm_get(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_spline_parm_enum | which,
fz_type_td * | data )

Parameters

windex [Input]

project window index

obj [Input]

object

which [Input]

parameter id

data [Result]

parameter data

Returns

Error codes
MODEL_ERR_WRONG_OBJT_TYPE - object passed in is not a spline object

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