formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Spline
Description
Sets 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 . Note, that the shape of the spline is not changed until the function has been called.
Plugin Prototype
fzrt_error_td fz_objt_edit_spline_parm_set(
fzrt_int | windex, |
obj, | |
which, | |
data ) |
Parameters
windex [Input]
project window index
obj [Input]
object
which [Input]
parameter id
data [Input]
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
See Also
,, ,,
Function Set
Defined in