BaseObject

3DS Max Plug-In SDK

BaseObject

See Also: Class BaseObject.

This is the base class for objects. Anything with a representation in the 3ds max 3D viewports is derived from BaseObject (including Modifiers, whose gizmos appear in the viewports).

The main methods of this class are:

Display()

This is called by the system to have the item display itself.

HitTest()

This allows the system to determine if a mouse point intersects the item.

Snap()

This method allows the item to participate in the 3ds max snapping system.

There are several methods to retrieve the bounding box for the object.

GetWorldBoundBox()

This is the world space bounding box.

GetLocalBoundBox()

This is the object space bounding box.

There are also methods for sub-object selection. Both procedural objects and modifiers can participate in sub-object selection.