3ds Max C++ API Reference
Loading...
Searching...
No Matches
IMNMeshUtilities18 Class Referenceabstract

Extends the MNMeshUtilities class for 2020 Update 2. More...

#include <mnmesh.h>

+ Inheritance diagram for IMNMeshUtilities18:

Public Member Functions

virtual Interface_ID GetID () override
 
virtual bool QuadVertexChamfer (const MNQuadVertexChamferParameters &params)=0
 Performs vertex chamfers on a mesh, using the new segmented quad chamfer approach.
 
virtual bool ChamferEdges (const DWORD in_flag, MNChamferData10 &in_mcd, const MN_QCHAM_TYPE in_resultType, const int in_segments)=0
 Chamfers mesh edges like MNMesh::ChamferEdges.
 
virtual bool ChamferVertices (const DWORD in_flag, MNChamferData *in_mcd, const MN_QCHAM_TYPE in_resultType)=0
 Chamfers mesh vertices like MNMesh::ChamferVertices.
 
- Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor.
 
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport Interface_ID GetID ()
 
virtual LifetimeType LifetimeControl ()
 
virtual bool RegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual void UnRegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual BaseInterfaceAcquireInterface ()
 
virtual void ReleaseInterface ()
 
virtual void DeleteInterface ()
 
virtual BaseInterfaceCloneInterface (void *remapDir=nullptr)
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
 
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Static Public Attributes

static constexpr Interface_ID ID = IMNMESHUTILITIES18_INTERFACE_ID
 

Additional Inherited Members

- Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }
 
- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

Detailed Description

Extends the MNMeshUtilities class for 2020 Update 2.

Usage:

IMNMeshUtilities18* l_mesh18 = static_cast<IMNMeshUtilities18*>(mesh.GetInterface(IMNMESHUTILITIES18_INTERFACE_ID));
Extends the MNMeshUtilities class for 2020 Update 2.
Definition: mnmesh.h:7378
#define IMNMESHUTILITIES18_INTERFACE_ID
Definition: mnmesh.h:7365

Member Function Documentation

◆ GetID()

virtual Interface_ID GetID ( )
inlineoverridevirtual
Remarks
This method returns the unique interface ID.

Reimplemented from BaseInterface.

◆ QuadVertexChamfer()

virtual bool QuadVertexChamfer ( const MNQuadVertexChamferParameters params)
pure virtual

Performs vertex chamfers on a mesh, using the new segmented quad chamfer approach.

Parameters
[in]params– The quad vertex chamfer parameter data (See MNQuadVertexChamferParameters)
Returns
true if mesh altered; false otherwise

◆ ChamferEdges()

virtual bool ChamferEdges ( const DWORD  in_flag,
MNChamferData10 in_mcd,
const MN_QCHAM_TYPE  in_resultType,
const int  in_segments 
)
pure virtual

Chamfers mesh edges like MNMesh::ChamferEdges.

Returns
true if the chamfer operation was successful
false if the chamfer operation failed
Postcondition
the mesh geometry is valid, even if the operation failed
Parameters
[in]in_flagthe edge flag used. See MNEdge for a description of flag values.
[in]in_mcdthe chamfer data.
[in]in_resultTypeEither everything, chamfered edges only (inverted), or without chamfered edges (opened).
[in]in_segmentsThe number of new edges to create per selected edge. If in_segments < 1, then behave as though in_segments = 1.

◆ ChamferVertices()

virtual bool ChamferVertices ( const DWORD  in_flag,
MNChamferData in_mcd,
const MN_QCHAM_TYPE  in_resultType 
)
pure virtual

Chamfers mesh vertices like MNMesh::ChamferVertices.

Returns
true if the chamfer operation was successful
false if the chamfer operation failed
Postcondition
the mesh geometry is valid, even if the operation failed
Parameters
[in]in_flagthe vertive flag used. See MNVert for a description of flag values.
[in]in_mcdthe chamfer data.
[in]in_resultTypeEither everything, chamfered vertices only (inverted), or without chamfered vertices (opened).

Member Data Documentation

◆ ID

constexpr Interface_ID ID = IMNMESHUTILITIES18_INTERFACE_ID
staticconstexpr