formZ SDK | 4.0 Call Back Reference | Object Type

fz_otyp_cbak_cvrt_ptch

Description

Object type convert to patch function (Optional). When this function is implemented, it needs to convert its shape to a formZ Bezier or coons patch. It should only be implemented when the shape of the object can be preserved when constructing the patches. This function can get called in two ways. When the action parameter is 0, the function only needs to check whether the particular object can be converted. It may be possible, that depending on the parametric data, an object can or cannot be converted to patches. When the action parameter is 1, the object needs to be converted. Note, that this function does not create a new object, but needs to change the object passed in. For convenience, both the object and a pointer to the parameter block are passed in.

Plugin Prototype

fzrt_error_td fz_otyp_cbak_cvrt_ptch(

fzrt_int

windex,

fz_objt_ptr

obj,

fzrt_ptr

parm,

fzrt_int

action,

fzrt_boolean *

can_cvrt )

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 the object passed in can be converted to patches. If set to 1, the object needs to be converted.

can_cvrt [Result]

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

Returns

Error codes

Availability

5.0.0.0

Function Set

fz_otyp_cbak_fset


Defined in

fz_otyp_api.h