formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Morph Object

fz_objt_cnstr_morf

Description

Creates a Morph object. This function constructs a Morph object interpolating a shape between a source and a destination object. The factor argument determines how far to interpolate. Values less than 0 and greater than 1 are acceptable.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_morf(

fzrt_int

windex,

fz_objt_ptr

src_obj,

fz_objt_ptr

dst_obj,

double

factor,

fzrt_boolean

place_at_source,

fzrt_boolean

ignore_orientation,

fz_attr_refn_ptr

refn_opts,

fz_objt_ptr *

obj )

Parameters

windex [Input]

Project window index

src_obj [Input]

Source object

dst_obj [Input]

Destination object

factor [Input]

Morph factor. 0.0 = shape of source, 1.0 = shape of destination

place_at_source [Input]

TRUE, to place morphed object at the origin of the source object. FALSE to move the morphed object between source and destination, according to morph percentage.

ignore_orientation [Input]

TRUE, to morph directly between source and destination object. FALSE to align source and destination objects by their axes first and then morph

refn_opts [Input, Optional]

Display resolution

obj [Result]

New object

Returns

Error codes

Availability

6.0.0.2

Example Files

util_objt_morf.fsl

See Also

fz_objt_edit_morf_parm_get, fz_objt_edit_morf_parm_set

Function Set

fz_model_fset


Defined in

fz_objt_morf_api.h