formZ SDK | 4.0 Call Back Reference | Object Type

fz_otyp_cbak_get_nsrf

Description

Object type get nurbs surface function (Optional). When this function is implemented, it needs to create a nurbs surface from its parametric data. The nurbs surface 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 surface can be created from the parametric data, as it may be possible, that depending on the parametric data, a nurbs surface can or cannot be created. When the action parameter is 1, the nurbs surface 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_nsrf(

fzrt_int

windex,

fz_objt_ptr

obj,

fzrt_ptr

parm,

fzrt_int

action,

fzrt_boolean *

can_cvrt,

fz_nurbs_srf_ptr *

nsrf )

Parameters

windex [Input]

project window index

obj [Input]

object

parm [Input]

generic pointer to the parameter block

action [Input]

if set to 0, the function only checks whether a nurbs surface can be created. If set to 1, the nurbs surface needs to be created.

can_cvrt [Result]

Needs to be set to TRUE, if the nurbs surface can be created and to FALSE otherwise. This parameter needs to be set for both, the 0 and 1 action.

nsrf [Result]

The new nurbs surface.

Returns

Error codes

Availability

5.0.0.0

Function Set

fz_otyp_cbak_fset


Defined in

fz_otyp_api.h