formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations
Description
Applies a random deformation to all points of an object.
The random disturbance is applied along the orthogonal directions
of a reference plane (defined by the angles applied in zyx order).
A point is disturbed between mist_dist.x and max_dist.x if do_xyz[0] is TRUE.
A point is disturbed between mist_dist.y and max_dist.y if do_xyz[1] is TRUE.
A point is disturbed between mist_dist.z and max_dist.z if do_xyz[2] is TRUE.
This deformation only works on facetted objects.
Objects should be sufficiently meshed as this
function simply disturbs the points of an object.
Plugin Prototype
fzrt_error_td fz_objt_edit_deform_random_xyz(
fzrt_int | windex, |
obj, | |
plane, | |
min_dist, | |
max_dist, | |
do_xyz[3] ) |
Parameters
windex [Input]
project window index
obj [Input, Result]
object (must be facetted)
plane [Input]
coordinate which orients the axis of deformation
min_dist [Input]
minimum distance to disturb points
Range: min_dist < max_dist
max_dist [Input]
maximum distance to disturb points
Range: max_dist > main_dist
do_xyz[3] [Input]
which axes to disturb points
if do_xyz[0] is TRUE, disturbance is applied to x coordinates
if do_xyz[1] is TRUE, disturbance is applied to y coordinates
if do_xyz[1] is TRUE, disturbance is applied to z coordinates
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, fz_objt_edit_deform_bezier,,
Function Set
Defined in