formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations
Description
Applies a bend 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 bending angle measured at the extreme of the deform bounding box,
opposite the center and is specified relative to this rotated coordinate .
The bending 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 bend_x is TRUE, the bend occurs along the local x axis.
Otherwise the object is bent along the local y axis.
If make_fact_smooth is TRUE, facetted objects are turned into smooth objects.
Plugin Prototype
fzrt_error_td fz_objt_edit_deform_bend(
fzrt_int | windex, |
obj, | |
center, | |
plane, | |
double | min, |
double | max, |
make_fact_smooth, | |
bend_x, | |
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
bend_x [Input]
if TRUE, the bend occurs along the local x axis; otherwise the bend occurs along the local y axis
angle [Input]
bend 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
See Also
, fz_objt_edit_deform_taper,, , fz_objt_edit_deform_radial_shear, fz_objt_edit_deform_bezier, ,,
Function Set
Defined in