class MNNormalFace This class is available in release 5.0 and later only.
This class is a face used to store specified normal information for
a given face. An array of these faces is used as a data member of
class MNNormalSpec, in much the same way
as an
MNMapFace array is a data member of class
MNMap.
#include <MNNormalSpec.h>
Public Member Functions |
|
MNNormalFace () | |
DllExport | MNNormalFace (int degree) |
~MNNormalFace () | |
DllExport void | Init () |
DllExport void | Clear () |
int | GetDegree () |
DllExport void | SetDegree (int degree) |
int | GetNormalID (int corner) |
void | SetNormalID (int corner, int norm) |
int * | GetNormalIDArray () |
Return a pointer to the internal array of
normal IDs. This array has length == GetDegree().
|
|
bool | GetSpecified (int corner) |
void | SetSpecified (int corner, bool value=true) |
void | SpecifyAll (bool value=true) |
Set all normals on this face to be
specified. |
|
DllExport void | SpecifyNormalID (int corner, int norm) |
DllExport void | MakePoly (int degree, int *pNormalID) |
DllExport void | Insert (int pos, int num=1) |
DllExport void | Delete (int pos, int num=1) |
DllExport void | RotateStart (int newstart) |
DllExport void | Flip () |
DllExport MNNormalFace & | operator= (const MNNormalFace &from) |
DllExport MNNormalFace & | operator= (const MNFace &from) |
DllExport void | ShallowTransfer (MNNormalFace &from) |
DllExport void | MNDebugPrint (bool printAll=false) |
DllExport IOResult | Save (ISave *isave) |
DllExport IOResult | Load (ILoad *iload) |
MNNormalFace | ( | ) | [inline] |
: mDegree(0), mpNormalID(NULL) { }
DllExport MNNormalFace | ( | int | degree | ) |
~MNNormalFace | ( | ) | [inline] |
{ Clear(); }
DllExport void Init | ( | ) |
DllExport void Clear | ( | ) |
int GetDegree | ( | ) | [inline] |
DllExport void SetDegree | ( | int | degree | ) |
int GetNormalID | ( | int | corner | ) | [inline] |
{ return (mpNormalID && (corner<mDegree)) ? mpNormalID[corner] : -1; }
void SetNormalID | ( | int | corner, |
int | norm | ||
) | [inline] |
{ if (mpNormalID && (corner<mDegree)) mpNormalID[corner] = norm; }
int* GetNormalIDArray | ( | ) | [inline] |
Return a pointer to the internal array of normal IDs. This array has length == GetDegree().
{ return mpNormalID; }
bool GetSpecified | ( | int | corner | ) | [inline] |
{ return (mpNormalID && (corner<mDegree) && mSpecified[corner]) ? true : false; }
void SetSpecified | ( | int | corner, |
bool | value = true |
||
) | [inline] |
{ if (mpNormalID && (corner<mDegree)) mSpecified.Set (corner, value); }
void SpecifyAll | ( | bool | value = true |
) | [inline] |
Set all normals on this face to be specified.
DllExport void SpecifyNormalID | ( | int | corner, |
int | norm | ||
) |
DllExport void MakePoly | ( | int | degree, |
int * | pNormalID | ||
) |
DllExport void Insert | ( | int | pos, |
int | num = 1 |
||
) |
DllExport void Delete | ( | int | pos, |
int | num = 1 |
||
) |
DllExport void RotateStart | ( | int | newstart | ) |
DllExport void Flip | ( | ) |
DllExport MNNormalFace& operator= | ( | const MNNormalFace & | from | ) |
DllExport MNNormalFace& operator= | ( | const MNFace & | from | ) |
DllExport void ShallowTransfer | ( | MNNormalFace & | from | ) |
DllExport void MNDebugPrint | ( | bool | printAll = false |
) |