3ds Max C++ API Reference
MNQuadVertexChamferParameters Class Reference

This class encapsulates the parameters defining the quad vertex chamfer operation accessed via the interface defined in IMNMeshUtilities18. More...

#include <MNQuadChamferParameters.h>

+ Inheritance diagram for MNQuadVertexChamferParameters:

Public Member Functions

 MNQuadVertexChamferParameters (DWORD flag, DWORD optionFlags, MN_QCHAM_TYPE resultType, int segments, float amount, float depth, float absWeightScale, float angleFactorVertex)
 Constructor with each parameter explicitly specified. More...
 
DWORD GetFlag () const
 
DWORD GetOptionFlags () const
 
MN_QCHAM_TYPE GetResultType () const
 
int GetSegments () const
 
float GetAmount () const
 
float GetDepth () const
 
float GetAbsWeightScale () const
 
float GetAngleFactor () const
 

Additional Inherited Members

- 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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Detailed Description

This class encapsulates the parameters defining the quad vertex chamfer operation accessed via the interface defined in IMNMeshUtilities18.

Definitions of each parameter are given below.

Constructor & Destructor Documentation

◆ MNQuadVertexChamferParameters()

MNQuadVertexChamferParameters ( DWORD  flag,
DWORD  optionFlags,
MN_QCHAM_TYPE  resultType,
int  segments,
float  amount,
float  depth,
float  absWeightScale,
float  angleFactorVertex 
)
inline

Constructor with each parameter explicitly specified.

Parameters
flagthe MN_XXX flag that indicates vertices to chamfer (see GeneralMNMeshComponentFlags)
optionFlagsarray of bits representing chamfer options; here, only QCHAM_OPTION_LIMIT_EFFECT is checked
resultTypespecifies the geometry to be generated
segmentsnumber of line segments to use to connect the chamfered edge ends with the chamfered corner point
amountchamfer amount by which the edge endpoints at a vertex should be pushed back from the original vertex
depthdepth value, specifying the shape of the chamfered surfaces
absWeightScalescaling factor to be applied to weights when chamfer amount is specified via absolute weighting approach
angleFactorVertexspecifies the angles between the original edges at a chamfered vertex, and the lines connecting the chamfered edge endpoints and the chamfered corner point for the unit depth case
273  :
274  m_flag(flag),
275  m_optionFlags(optionFlags),
276  m_resultType(resultType),
277  m_segments(segments),
278  m_amount(amount),
279  m_depth(depth),
280  m_absWeightScale(absWeightScale),
281  m_angleFactorVertex(angleFactorVertex)
282  {
283  }

Member Function Documentation

◆ GetFlag()

DWORD GetFlag ( ) const
inline
287  {
288  return m_flag;
289  }

◆ GetOptionFlags()

DWORD GetOptionFlags ( ) const
inline
293  {
294  return m_optionFlags;
295  }

◆ GetResultType()

MN_QCHAM_TYPE GetResultType ( ) const
inline
299  {
300  return m_resultType;
301  }

◆ GetSegments()

int GetSegments ( ) const
inline
305  {
306  return m_segments;
307  }

◆ GetAmount()

float GetAmount ( ) const
inline
311  {
312  return m_amount;
313  }

◆ GetDepth()

float GetDepth ( ) const
inline
317  {
318  return m_depth;
319  }

◆ GetAbsWeightScale()

float GetAbsWeightScale ( ) const
inline
323  {
324  return m_absWeightScale;
325  }

◆ GetAngleFactor()

float GetAngleFactor ( ) const
inline
329  {
330  return m_angleFactorVertex;
331  }