Class MeshDeltaUser

3DS Max Plug-In SDK

Class MeshDeltaUser

See Also: Class Mesh, Class MeshDelta.

class MeshDeltaUser : public InterfaceServer

Description:

This class is available in release 3.0 and later only.

This is a virtual class which both Editable Mesh (class EditTriObject) and Edit Mesh (class EditMeshMod) subclass off of. It contains interface methods for editable meshes, much like the IMeshSelect class contains interface methods for modifiers and objects that can select sub-object parts of meshes.

Methods:

public:

Prototype:

virtual void LocalDataChanged(DWORD parts)=0;

Remarks:

This method is used to notify the MeshDeltaUser that at least one of its associated MeshDeltaUserDatas has changed.

Parameters:

DWORD parts

This represents the parts of the local data that have changed. One or more of the following values:

PART_TOPO, PART_GEOM, PART_TEXMAP, PART_MTL, PART_SELECT, PART_SUBSEL_TYPE, PART_DISPLAY, PART_VERTCOLOR, PART_GFX_DATA

Prototype:

virtual void ToggleCommandMode(meshCommandMode mode)=0;

Remarks:

This method is used to start up one of the interactive command modes of the editable mesh.

Parameters:

meshCommandMode mode

The mode to start. One of the following values:

McmCreate, McmAttach, McmExtrude, McmBevel, McmChamfer, McmSlicePlane, McmCut, McmWeldTarget, McmFlipNormalMode, McmDivide, McmTurnEdge

Prototype:

virtual void ButtonOp(meshButtonOp opcode)=0;

Remarks:

This method performs the equivalent operation as a button press in the editable mesh UI.

Parameters:

meshButtonOp opcode

One of the following values:

MopHide, MopUnhideAll, MopDelete, MopDetach, MopBreak, MopViewAlign, MopGridAlign, MopMakePlanar, MopCollapse, MopTessellate, MopExplode, MopSlice, MopWeld, MopShowNormal, MopAutoSmooth, MopRemoveIsolatedVerts, MopSelectOpenEdges, MopCreateShapeFromEdges, MopFlipNormal, MopUnifyNormal, MopVisibleEdge, MopInvisibleEdge, MopAutoEdge, MopAttachList, MopSelectByID, MopSelectBySG, MopClearAllSG, MopSelectByColor

Prototype:

virtual void GetUIParam(meshUIParam uiCode, int &ret);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to get the edit spline parameters from the command panel. Currently not in use.

Parameters:

meshUIParam uiCode

One of the following values;

MuiSelByVert, MuiIgBack, MuiIgnoreVis, MuiSoftSel, MuiSSUseEDist, MuiSSEDist, MuiSSBack, MuiWeldBoxSize, MuiExtrudeType, MuiShowVNormals, MuiShowFNormals, MuiPolyThresh, MuiFalloff, MuiPinch, MuiBubble, MuiWeldDist, MuiNormalSize

int &ret

The returned value.

Default Implementation:

{ }

Prototype:

virtual void SetUIParam(meshUIParam uiCode, int val);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to set the edit spline parameters from the command panel. Currently not in use.

Parameters:

meshUIParam uiCode

One of the following values;

MuiSelByVert, MuiIgBack, MuiIgnoreVis, MuiSoftSel, MuiSSUseEDist, MuiSSEDist, MuiSSBack, MuiWeldBoxSize, MuiExtrudeType, MuiShowVNormals, MuiShowFNormals, MuiPolyThresh, MuiFalloff, MuiPinch, MuiBubble, MuiWeldDist, MuiNormalSize

int val

The value to set.

Default Implementation:

{ }

Prototype:

virtual void GetUIParam(meshUIParam uiCode, float &ret);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to get the edit spline parameters from the command panel. Currently not in use.

Parameters:

meshUIParam uiCode

One of the following values;

MuiSelByVert, MuiIgBack, MuiIgnoreVis, MuiSoftSel, MuiSSUseEDist, MuiSSEDist, MuiSSBack, MuiWeldBoxSize, MuiExtrudeType, MuiShowVNormals, MuiShowFNormals, MuiPolyThresh, MuiFalloff, MuiPinch, MuiBubble, MuiWeldDist, MuiNormalSize

float &ret

The returned value.

Default Implementation:

{ }

Prototype:

virtual void SetUIParam(meshUIParam uiCode, float val);

Remarks:

This method is available in release 4.0 and later only.

This method allows you to set the edit spline parameters from the command panel. Currently not in use.

Parameters:

meshUIParam uiCode

One of the following values;

MuiSelByVert, MuiIgBack, MuiIgnoreVis, MuiSoftSel, MuiSSUseEDist, MuiSSEDist, MuiSSBack, MuiWeldBoxSize, MuiExtrudeType, MuiShowVNormals, MuiShowFNormals, MuiPolyThresh, MuiFalloff, MuiPinch, MuiBubble, MuiWeldDist, MuiNormalSize

float val

The value to set.

Default Implementation:

{ }