gml_Deformation.tcl File Reference

gmlDeformation_deformTypes

Returns the list of name of the currently registered deformation type.

gmlDeformation_Translate_updateCallback initTransfo initHandlePos currentHandlePos

Implements a translation with one control point.

gmlDeformation_RotateUniformScale_updateCallback initTransfo initHandlePos currentHandlePos

Implements a rotation with uniform scaling with two control points.

gmlDeformation_Rotate_updateCallback initTransfo initHandlePos currentHandlePos

Implements a rotation with two control points. The first control point is the center of rotation.

gmlDeformation_Scaling_updateCallback initTransfo initHandlePos currentHandlePos

Implements a scaling with two control points.

gmlDeformation_registerDeformType name minHandle maxHandle updateCallback

Registers a new deformation type that can then be used by any gmlDeformation instance.

name
is the name of the new deformation type. A deformation with such a name must not have been registered already or an error occurs.
minHandle
the minimum number of handles to compute this deformation.
maxHandle
the maximum number of handles to compute this deformation.
updateCallback

a script that is called to compute the new transformation. When called, this callback receives 3 arguments:

  • the initial transformation
  • the list of initial positions of the handles
  • the list of current positions of the handles