3ds Max C++ API Reference
triobj.h File Reference
#include "meshlib.h"
#include "snap.h"
#include "maxtess.h"
#include "object.h"
#include "Graphics/IObjectDisplay2.h"
#include "XTCObject.h"

Classes

class  TriObject
 
class  TriObjectNormalXTC
 

Macros

#define TRI_MULTI_PROCESSING   TRUE
 

Functions

CoreExport void SetDisplacmentPreset (int preset, TessApprox approx)
 
CoreExport ClassDescGetTriObjDescriptor ()
 
CoreExport void RegisterEditTriObjDesc (ClassDesc *desc)
 
CoreExport ClassDescGetEditTriObjDesc ()
 
CoreExport TriObjectCreateNewTriObject ()
 

Variables

CoreExport Class_ID triObjectClassID
 
const Class_ID kTriObjNormalXTCID = Class_ID(0x730a33d7, 0x27246c55)
 

Macro Definition Documentation

◆ TRI_MULTI_PROCESSING

#define TRI_MULTI_PROCESSING   TRUE

Function Documentation

◆ SetDisplacmentPreset()

CoreExport void SetDisplacmentPreset ( int  preset,
TessApprox  approx 
)

◆ GetTriObjDescriptor()

CoreExport ClassDesc* GetTriObjDescriptor ( )
Remarks
Returns a pointer to the class descriptor for the regular, standard TriObject.

◆ RegisterEditTriObjDesc()

CoreExport void RegisterEditTriObjDesc ( ClassDesc desc)
Remarks
A new descriptor can be registered to replace the default TriObject descriptor. This new descriptor will then be used to create TriObjects.
Parameters:
ClassDesc* desc

The class descriptor to replace the default TriObject descriptor.

◆ GetEditTriObjDesc()

CoreExport ClassDesc* GetEditTriObjDesc ( )
Remarks
Returns a pointer to the class descriptor for the editable TriObject. It returns the default if none has been registered. See below.

◆ CreateNewTriObject()

CoreExport TriObject* CreateNewTriObject ( )
Remarks
This method is used to create a new TriObject. Use this instead of new TriObject. It will use the registered descriptor if one is registered, otherwise you'll get a default TriObject.

Variable Documentation

◆ triObjectClassID

CoreExport Class_ID triObjectClassID
extern

◆ kTriObjNormalXTCID

const Class_ID kTriObjNormalXTCID = Class_ID(0x730a33d7, 0x27246c55)