Public Member Functions

Deformer Class Reference

This reference page is linked to from the following overview topics: Simple Modifiers, Using a Deformer.


Search for all occurrences

Detailed Description

The callback object used by modifiers to deform "Deformable" objects.

See also:
Class Object, Class Point3.

#include <object.h>

Inheritance diagram for Deformer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~Deformer ()
  Destructor.
virtual Point3  Map (int i, Point3 p)=0
  This is the method that is called to deform or alter a single point.
void  ApplyToTM (Matrix3 *tm)

Constructor & Destructor Documentation

virtual ~Deformer ( ) [inline, virtual]

Destructor.

{ }

Member Function Documentation

virtual Point3 Map ( int  i,
Point3  p 
) [pure virtual]

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:
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.
p The point to be altered.
Returns:
The altered point.
void ApplyToTM ( Matrix3 tm )

Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer
Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer Deformer