formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations

# fz_objt_edit_deform_twist

Description

Applies a twist deformation to an object.
min and max are the vertical extents of the bounding box with 0.0 <= min < max <= 1.0 plane_rot is a zyx rotation of the work coordinate which orients the axis of deformation. center determines the pivot point of the deformation. angle is the twist angle measured at the extreme of the deform bounding box, opposite the center and is specified relative to the rotated coordinate . The twist axis always runs through the center of the bounding box of the object. The bounding box is aligned with the axes of the rotated coordinate . If make_fact_smooth is TRUE, facetted objects are turned into smooth objects.

Plugin Prototype

fzrt_error_td fz_objt_edit_deform_twist(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_dfrm_center_enum | center,
fz_map_plane_td * | plane,
double | min,
double | max,
fzrt_boolean | make_fact_smooth,
double | angle )

Parameters

windex [Input]

project window index

obj [Input, Result]

object

center [Input]

pivot point of the deformation

plane [Input]

coordinate which orients the axis of deformation

min [Input]

minimum vertical extents of the deform bounding box

Range: 0.0 <= min < max

max [Input]

maximum vertical extents of the deform bounding box

Range: min < max <= 1.0

make_fact_smooth [Input]

if TRUE, facetted objects are turned into smooth objects; otherwise facetted objects are left facetted

angle [Input]

twist angle measured at the extreme of the deform bounding box, opposite the center and is specified relative to the rotated coordinate

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_deform.fsl

See Also

, fz_objt_edit_deform_taper,, fz_objt_edit_deform_radial_shear, fz_objt_edit_deform_bend, fz_objt_edit_deform_bezier, ,,

Function Set

fz_model_fset

Defined in

fz_objt_api.h