formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations
Description
Applies a deformation to an object, based on the shape of a 4 point
cubic bezier curve.
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.
The four points of the bezier curve are defined
as xyz offsets from four equally spaced points on the bending axis
(i.e. at 0.0, 1/3, 2/3 and 1.0 along the direction of the axis).
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 .
Note: This deformation only works on facetted, nurbz or patch objects.
Plugin Prototype
fzrt_error_td fz_objt_edit_deform_bezier(
fzrt_int | windex, |
obj, | |
plane, | |
double | min, |
double | max, |
pts_offset[4], | |
scale_offset[4] ) |
Parameters
windex [Input]
project window index
obj [Input, Result]
object (must be a facetted, nurbz or patch object)
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
pts_offset[4] [Input, Optional]
distance to the four points of the bezier curve that are xyz offsets from four equally spaced points on the bending axis
scale_offset[4] [Input, Optional]
scale factor from the bounding box for the four points of the bezier curve that are xyz offsets from four equally spaced points on the bending axis
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_bend, ,,
Function Set
Defined in