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

# fz_objt_edit_deform_random_xyz

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,
fz_objt_ptr | obj,
fz_map_plane_td * | plane,
fz_xyz_td * | min_dist,
fz_xyz_td * | max_dist,
fzrt_boolean | 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

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