Public Member Functions | Friends

MNChamferData10 Class Reference

Search for all occurrences

Detailed Description

MNChamferData for use with IMNMeshUtilities10::ChamferEdges.

See also:
Class MNChamferData, Class IMNTempData10, Class IMNMeshUtilities10

This class enhances MNChamferData. IMNMeshUtilities10::ChamferEdges requires an MNChamferData10 object. The following code sample demonstrates how to use this class.

Some well-defined pointers:

MNTempData* tempData;
MNMesh* mesh;

First, effect the topological change with IMNMeshUtilities10::ChamferEdges:

IMNMeshUtilities10* mesh10 = static_cast<IMNMeshUtilities10*>(mesh->GetInterface(IMNMESHUTILITIES10_INTERFACE_ID));
IMNTempData10* tempData10 = static_cast<IMNTempData10*>(tempData->GetInterface( IMNTEMPDATA10_INTERFACE_ID ));
MNChamferData10& chamferData10 = tempData10->ChamferData();
mesh10->ChamferEdges(MN_SEL, chamferData10, false, 1);

After making the topological change, modify the mesh geometry with the desired chamfer amount:

Tab<int> delta;
IMNTempData10* tempData10 = static_cast<IMNTempData10*>(tempData->GetInterface( IMNTEMPDATA10_INTERFACE_ID ));
MNChamferData10& chamferData10 = tempData10->ChamferData();
chamferData10.SetDelta(chamferAmount, delta);

Do not do this:

MNChamferData* chamferData = tempData->ChamferData(); 
chamferData->GetDelta(chamferAmount, delta);

#include <MNChamferData10.h>

Inheritance diagram for MNChamferData10:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DllExport  MNChamferData10 (MNChamferData &in_data)
  Initializes decorated object.
virtual DllExport  ~MNChamferData10 ()
DllExport void  GetDelta (float in_amount, Tab< Point3 > &out_delta)
  Decorator for MNChamferData::GetDelta. This function also interpolates between vertices created.
DllExport void  setNumVerts (int in_nv, bool in_keep=TRUE, int in_resizer=0)
  Decorator for MNChamferData::setNumVerts.
DllExport void  InitToMesh (const MNMesh &in_m)
  Decorator for MNChamferData::InitToMesh.
DllExport void  ClearLimits ()
  Decorator for MNChamferData::ClearLimits.
DllExport bool  GetMapDelta (MNMesh &in_mm, int in_mapChannel, float in_amount, Tab< UVVert > &out_delta)
  Decorator for MNChamferData::GetMapDelta.
DllExport Tab< UVVert > &  MDir (int in_mapChannel)
  Decorator for MNChamferData::MDir.
DllExport Tab< Point3 > &  GetVDIR ()
  Returns MNChamferData::vdir.
DllExport Tab< float > &  GetVMAX ()
  Returns MNChamferData::vmax.
DllExport Tab< UVVert > *&  GetMDIR ()
  Returns MNChamferData::mdir.

Friends

class  MNMesh

Constructor & Destructor Documentation

DllExport MNChamferData10 ( MNChamferData in_data )

Initializes decorated object.

Functions are forwarded to underlying MNChamferData object in_data. Some functions append additional functionality. Thus in_data is updated with every function call.

Parameters:
[in] in_data underlying MNChamferData object.
virtual DllExport ~MNChamferData10 ( ) [virtual]

Member Function Documentation

DllExport void GetDelta ( float  in_amount,
Tab< Point3 > &  out_delta 
)

Decorator for MNChamferData::GetDelta. This function also interpolates between vertices created.

DllExport void setNumVerts ( int  in_nv,
bool  in_keep = TRUE,
int  in_resizer = 0 
)
DllExport void InitToMesh ( const MNMesh in_m )
DllExport void ClearLimits ( )
DllExport bool GetMapDelta ( MNMesh in_mm,
int  in_mapChannel,
float  in_amount,
Tab< UVVert > &  out_delta 
)

Decorator for MNChamferData::GetMapDelta.

This function also interpolates between mapping vertices created on segmented edges.

DllExport Tab<UVVert>& MDir ( int  in_mapChannel )
DllExport Tab<Point3>& GetVDIR ( )
DllExport Tab<float>& GetVMAX ( )
DllExport Tab<UVVert>*& GetMDIR ( )

Friends And Related Function Documentation

friend class MNMesh [friend]

MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10
MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10 MNChamferData10