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

#define PolyLibExport   __declspec( dllimport )
#define POLY_MULTI_PROCESSING   TRUE

Function Documentation

PolyLibExport ClassDesc* GetPolyObjDescriptor ( )
Remarks
Gets the class descriptor for the PolyObject.
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.
PolyLibExport ClassDesc* GetEditPolyObjDesc ( )
Remarks
Gets the class descriptor for the currently registered Editable Poly object.
PolyLibExport PolyObject* CreateEditablePolyObject ( )
Remarks
Returns an Editable Poly object from the currently registered EPoly descriptor, cast as a PolyObject.
PolyLibExport void ConvertPolyToPatch ( MNMesh from,
PatchMesh to,
DWORD  flags = 0 
)

Converts a poly object to a patch mesh.

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

Converts a patch object to a poly object.

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)

Variable Documentation

PolyLibExport Class_ID polyObjectClassID