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

# fz_objt_edit_deform_radial_shear

Description

Applies a radial shear 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.
Note: FZ_OBJT_DEFORM_CENTER_TOP and FZ_OBJT_DEFORM_CENTER_BOTTOM will give the same results for this deformation type.
sx_sy is the shear factor measured at the extreme of the deform bounding box, opposite the center and is specified relative to this rotated coordinate . The shear 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_radial_shear(

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,
fz_xy_td * | dx_dy,
fz_xy_td * | sx_sy )

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

dx_dy [Input, Optional]

the distance of the shear measured at the extreme of the

sx_sy [Input, Optional]

the scale of the shear measured at the extreme of the

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_bend, fz_objt_edit_deform_bezier, ,,

Function Set

fz_model_fset

Defined in

fz_objt_api.h