formZ SDK | 4.0 Call Back Reference | Object Type
Description
Object type get nurbs curve function (Optional). When this function is implemented, it needs to create a nurbs curve from its parametric data. The nurbs curve must have the same shape as the original object. This function can get called in two ways. When the action parameter is 0, the function only needs to check whether a nurbs curve can be created from the parametric data, as it may be possible, that depending on the parametric data, a nurbs curve can or cannot be created. When the action parameter is 1, the nurbs curve needs to be created. For convenience, both the object and a pointer to the parameter block are passed in.
Plugin Prototype
fzrt_error_td fz_otyp_cbak_get_ncur(
fzrt_int | windex, |
obj, | |
parm, | |
clamp_closed, | |
fzrt_int | action, |
can_cvrt, | |
ncur ) |
Parameters
windex [Input]
project window index
obj [Input]
object
parm [Input]
generic pointer to the parameter block
clamp_closed [Input]
If set to TRUE, a closed nurbs curve needs to be created with knot multiplicity at the start and end (clamped). Otherwise a closed curve needs to be created without knot multiplicity but with overlapping control points.
action [Input]
if set to 0, the function only checks whether a nurbs curve can be created. If set to 1, the nurbs curve needs to be created.
can_cvrt [Result]
Needs to be set to TRUE, if the nurbs curve can be created and to FALSE otherwise. This parameter needs to be set for both, the 0 and 1 action.
ncur [Result]
The new nurbs curve.
Returns
Error codes
Availability
5.0.0.0
Function Set
Defined in