Class Deformer

3DS Max Plug-In SDK

Class Deformer

See Also: Class Object, Class Point3.

class Deformer

Description:

This is the callback object used by modifiers to deform "Deformable" objects.

Methods:

Prototype:

virtual Point3 Map(int i, Point3 p) = 0;

Remarks:

Implemented by the Plug-In.

This is the method that is called to deform or alter a single point. Note that this method needs to be thread safe. A problem may occur when a non-local variable is modified inside of Map(). Since two versions of Map() could be executing at the same time, they could both end up modifying the same variable simultaneously which usually causes problems. See the Advanced Topics section Thread Safe Plug-Ins for more details.

Parameters:

int i

The index of the point to be altered. Note: An index of -1 may be passed. This indicates that the deformer is not being applied to a regular object but instead points that are generated on the fly for display purposes.

Point3 p

The point to be altered.

Return Value:

The altered point.