3ds Max C++ API Reference
polyobj.h File Reference
#include "meshlib.h"
#include "mnmath.h"
#include "snap.h"
#include "object.h"
#include "maxtess.h"

Classes

class  PolyObject
 

Macros

#define PolyLibExport   __declspec( dllimport )
 
#define POLY_MULTI_PROCESSING   TRUE
 

Functions

PolyLibExport ClassDescGetPolyObjDescriptor ()
 
PolyLibExport void RegisterEditPolyObjDesc (ClassDesc *desc)
 
PolyLibExport ClassDescGetEditPolyObjDesc ()
 
PolyLibExport PolyObjectCreateEditablePolyObject ()
 
PolyLibExport void ConvertPolyToPatch (MNMesh &from, PatchMesh &to, DWORD flags=0)
 Converts a poly object to a patch mesh. More...
 
PolyLibExport void ConvertPatchToPoly (PatchMesh &from, MNMesh &to, DWORD flags=0)
 Converts a patch object to a poly object. More...
 
PolyLibExport bool PreparePolyObjectDisplay (MNMesh &mesh, const MaxSDK::Graphics::UpdateDisplayContext &updateDisplayContext)
 
PolyLibExport bool UpdatePolyObjectPerNodeItemsDisplay (MNMesh &mesh, const MaxSDK::Graphics::UpdateDisplayContext &updateDisplayContext, MaxSDK::Graphics::UpdateNodeContext &nodeContext, MaxSDK::Graphics::IRenderItemContainer &targetRenderItemContainer)
 
PolyLibExport void MakeImmediatePolyObjectWireframeRenderItemsAsGizmo (MaxSDK::Graphics::IRenderItemContainer &targetRenderItemContainer)
 

Variables

PolyLibExport Class_ID polyObjectClassID
 

Macro Definition Documentation

◆ PolyLibExport

#define PolyLibExport   __declspec( dllimport )

◆ POLY_MULTI_PROCESSING

#define POLY_MULTI_PROCESSING   TRUE

Function Documentation

◆ GetPolyObjDescriptor()

PolyLibExport ClassDesc* GetPolyObjDescriptor ( )
Remarks
Gets the class descriptor for the PolyObject.

◆ RegisterEditPolyObjDesc()

PolyLibExport void RegisterEditPolyObjDesc ( ClassDesc desc)
Remarks
Allows a plugin to register an Editable Poly object. (This is done by epoly.dlo in the standard 3ds Max distribution.) This is the object which is collapsed to when the stack is collapsed. The default if no such object is registered is to simply collapse to a PolyObject (which has no UI parameters).
Parameters:
ClassDesc* desc

A pointer to the class descriptor.

◆ GetEditPolyObjDesc()

PolyLibExport ClassDesc* GetEditPolyObjDesc ( )
Remarks
Gets the class descriptor for the currently registered Editable Poly object.

◆ CreateEditablePolyObject()

PolyLibExport PolyObject* CreateEditablePolyObject ( )
Remarks
Returns an Editable Poly object from the currently registered EPoly descriptor, cast as a PolyObject.

◆ ConvertPolyToPatch()

PolyLibExport void ConvertPolyToPatch ( MNMesh from,
PatchMesh to,
DWORD  flags = 0 
)

Converts a poly object to a patch mesh.

◆ ConvertPatchToPoly()

PolyLibExport void ConvertPatchToPoly ( PatchMesh from,
MNMesh to,
DWORD  flags = 0 
)

Converts a patch object to a poly object.

◆ PreparePolyObjectDisplay()

PolyLibExport bool PreparePolyObjectDisplay ( MNMesh mesh,
const MaxSDK::Graphics::UpdateDisplayContext updateDisplayContext 
)

◆ UpdatePolyObjectPerNodeItemsDisplay()

PolyLibExport bool UpdatePolyObjectPerNodeItemsDisplay ( MNMesh mesh,
const MaxSDK::Graphics::UpdateDisplayContext updateDisplayContext,
MaxSDK::Graphics::UpdateNodeContext nodeContext,
MaxSDK::Graphics::IRenderItemContainer targetRenderItemContainer 
)

◆ MakeImmediatePolyObjectWireframeRenderItemsAsGizmo()

PolyLibExport void MakeImmediatePolyObjectWireframeRenderItemsAsGizmo ( MaxSDK::Graphics::IRenderItemContainer targetRenderItemContainer)

Variable Documentation

◆ polyObjectClassID

PolyLibExport Class_ID polyObjectClassID
extern