This reference page is linked to from the following overview topics: Hit Regions.
#include <MNNormalSpec.h>
Public Member Functions |
|
MNNormalSpec () | |
~MNNormalSpec () | |
DllExport void | Initialize () |
DllExport bool | NAlloc (int num, bool keep=TRUE) |
DllExport void | NShrink () |
DllExport bool | FAlloc (int num, bool keep=TRUE) |
DllExport void | FShrink () |
DllExport void | Clear () |
DllExport void | ClearAndFree () |
int | GetNumFaces () const |
DllExport bool | SetNumFaces (int numFaces) |
int | GetNumNormals () const |
DllExport bool | SetNumNormals (int numNormals) |
Point3 & | Normal (int normID) const |
Point3 * | GetNormalArray () const |
bool | GetNormalExplicit (int normID) const |
void | SetNormalExplicit (int normID, bool value) |
void | SetAllExplicit (bool value=true) |
Set all normals in this MNNormalSpec to be explicit.
|
|
MNNormalFace & | Face (int faceID) const |
MNNormalFace * | GetFaceArray () const |
void | SetParent (MNMesh *pMesh) |
DllExport Point3 & | GetNormal (int face, int corner) |
DllExport void | SetNormal (int face, int corner, Point3 &normal) |
DllExport int | GetNormalIndex (int face, int corner) |
DllExport void | SetNormalIndex (int face, int corner, int normalIndex) |
DllExport int | NewNormal (Point3 &normal, bool explic=true) |
DllExport void | SetSelection (BitArray &newSelection) |
BitArray & | GetSelection () |
void | SetDisplayLength (float displayLength) |
float | GetDisplayLength () |
DllExport void | CollapseDeadFaces () |
DllExport void | Display (GraphicsWindow *gw, bool showSel) |
DllExport bool | HitTest (GraphicsWindow *gw, HitRegion *hr, DWORD flags, SubObjHitList &hitList) |
DllExport Box3 | GetBoundingBox (Matrix3 *tm=NULL, bool selectedOnly=false) |
DllExport void | ClearNormals () |
DllExport void | BuildNormals () |
DllExport void | ComputeNormals () |
DllExport void | CheckNormals () |
DllExport MNNormalSpec & | operator= (const MNNormalSpec &from) |
DllExport void | CopySpecified (const MNNormalSpec &from) |
DllExport MNNormalSpec & | operator+= (const MNNormalSpec &from) |
DllExport void | MNDebugPrint (bool printAll=false) |
DllExport bool | CheckAllData (int numParentFaces) |
DllExport IOResult | Save (ISave *isave) |
DllExport IOResult | Load (ILoad *iload) |
Interface_ID | GetID () |
DllExport void | DeleteInterface () |
DllExport BaseInterface * | GetInterface (Interface_ID id) |
DllExport BaseInterface * | CloneInterface (void *remapDir=NULL) |
DllExport void | ShallowCopy (IPipelineClient *from, ChannelMask channels) |
DllExport void | DeepCopy (IPipelineClient *from, ChannelMask channels) |
DllExport void | NewAndCopyChannels (ChannelMask channels) |
DllExport void | FreeChannels (ChannelMask channels, int zeroOthers=1) |
DllExport void | ZeroChannels (ChannelMask channels) |
DllExport void | AppendAllChannels (IPipelineClient *from) |
DllExport bool | Transform (Matrix3 &xfm, BOOL useSel=false, BitArray *normalSelection=NULL) |
DllExport bool | Translate (Point3 &translate, BOOL useSel=true, BitArray *normalSelection=NULL) |
DllExport bool | BreakNormals (BOOL useSel=true, BitArray *normalSelection=NULL, BOOL toAverage=false) |
DllExport bool | UnifyNormals (BOOL useSel=true, BitArray *normalSelection=NULL, BOOL toAverage=false) |
DllExport bool | AverageNormals (BOOL useThresh=false, float threshold=0.0f, BOOL useSel=true, BitArray *normalSelection=NULL) |
DllExport bool | SpecifyNormals (BOOL useSel=true, BitArray *normalSelection=NULL) |
DllExport bool | MakeNormalsExplicit (BOOL useSel=true, BitArray *normalSelection=NULL, bool value=true) |
DllExport bool | ResetNormals (BOOL useSel=true, BitArray *normalSelection=NULL) |
MNNormalSpec | ( | ) | [inline] |
: mpFace(NULL), mpNormal(NULL), mNumNormalAlloc(0), mNumFaceAlloc(0), mNumNormals(0), mNumFaces(0), mpParent(NULL), mDisplayLength(MNNORMAL_LENGTH_DEFAULT) { }
~MNNormalSpec | ( | ) | [inline] |
{ ClearAndFree (); }
DllExport void Initialize | ( | ) |
DllExport bool NAlloc | ( | int | num, |
bool | keep = TRUE |
||
) |
DllExport void NShrink | ( | ) |
DllExport bool FAlloc | ( | int | num, |
bool | keep = TRUE |
||
) |
DllExport void FShrink | ( | ) |
DllExport void Clear | ( | ) |
DllExport void ClearAndFree | ( | ) |
int GetNumFaces | ( | ) | const [inline] |
{ return mNumFaces; }
DllExport bool SetNumFaces | ( | int | numFaces | ) |
int GetNumNormals | ( | ) | const [inline] |
{ return mNumNormals; }
DllExport bool SetNumNormals | ( | int | numNormals | ) |
Point3& Normal | ( | int | normID | ) | const [inline] |
{ return mpNormal[normID]; }
Point3* GetNormalArray | ( | ) | const [inline] |
{ return mpNormal; }
bool GetNormalExplicit | ( | int | normID | ) | const [inline] |
{ return mNormalExplicit[normID] ? true : false; }
void SetNormalExplicit | ( | int | normID, |
bool | value | ||
) | [inline] |
{ mNormalExplicit.Set (normID, value); }
void SetAllExplicit | ( | bool | value = true |
) | [inline] |
Set all normals in this MNNormalSpec to be explicit.
MNNormalFace& Face | ( | int | faceID | ) | const [inline] |
MNNormalFace* GetFaceArray | ( | ) | const [inline] |
void SetParent | ( | MNMesh * | pMesh | ) | [inline] |
{ mpParent = pMesh; }
DllExport Point3& GetNormal | ( | int | face, |
int | corner | ||
) |
DllExport void SetNormal | ( | int | face, |
int | corner, | ||
Point3 & | normal | ||
) |
DllExport int GetNormalIndex | ( | int | face, |
int | corner | ||
) |
DllExport void SetNormalIndex | ( | int | face, |
int | corner, | ||
int | normalIndex | ||
) |
DllExport int NewNormal | ( | Point3 & | normal, |
bool | explic =
true |
||
) |
DllExport void SetSelection | ( | BitArray & | newSelection | ) |
BitArray& GetSelection | ( | ) | [inline] |
void SetDisplayLength | ( | float | displayLength | ) | [inline] |
{ mDisplayLength = displayLength; }
float GetDisplayLength | ( | ) | [inline] |
{ return mDisplayLength; }
DllExport void CollapseDeadFaces | ( | ) |
DllExport void Display | ( | GraphicsWindow * | gw, |
bool | showSel | ||
) |
DllExport bool HitTest | ( | GraphicsWindow * | gw, |
HitRegion * | hr, | ||
DWORD | flags, | ||
SubObjHitList & | hitList | ||
) |
DllExport void ClearNormals | ( | ) |
DllExport void BuildNormals | ( | ) |
DllExport void ComputeNormals | ( | ) |
DllExport void CheckNormals | ( | ) |
DllExport MNNormalSpec& operator= | ( | const MNNormalSpec & | from | ) |
DllExport void CopySpecified | ( | const MNNormalSpec & | from | ) |
DllExport MNNormalSpec& operator+= | ( | const MNNormalSpec & | from | ) |
DllExport void MNDebugPrint | ( | bool | printAll = false |
) |
DllExport bool CheckAllData | ( | int | numParentFaces | ) |
Interface_ID GetID | ( | ) | [inline, virtual] |
Reimplemented from IPipelineClient.
{return MN_NORMAL_SPEC_INTERFACE;}
DllExport void DeleteInterface | ( | ) | [virtual] |
Reimplemented from BaseInterface.
DllExport BaseInterface* GetInterface | ( | Interface_ID | id | ) | [virtual] |
Reimplemented from BaseInterface.
DllExport BaseInterface* CloneInterface | ( | void * | remapDir = NULL |
) | [virtual] |
Reimplemented from BaseInterface.
DllExport void ShallowCopy | ( | IPipelineClient * | from, |
ChannelMask | channels | ||
) | [virtual] |
Implements IPipelineClient.
DllExport void DeepCopy | ( | IPipelineClient * | from, |
ChannelMask | channels | ||
) | [virtual] |
Implements IPipelineClient.
DllExport void NewAndCopyChannels | ( | ChannelMask | channels | ) | [virtual] |
Implements IPipelineClient.
DllExport void FreeChannels | ( | ChannelMask | channels, |
int | zeroOthers =
1 |
||
) | [virtual] |
Implements IPipelineClient.
DllExport void ZeroChannels | ( | ChannelMask | channels | ) | [virtual] |
Implements IPipelineClient.
DllExport void AppendAllChannels | ( | IPipelineClient * | from | ) | [virtual] |
Implements IPipelineClient.
DllExport bool Translate | ( | Point3 & | translate, |
BOOL | useSel = true , |
||
BitArray * | normalSelection =
NULL |
||
) |
DllExport bool BreakNormals | ( | BOOL | useSel = true , |
BitArray * | normalSelection =
NULL , |
||
BOOL | toAverage =
false |
||
) |
DllExport bool UnifyNormals | ( | BOOL | useSel = true , |
BitArray * | normalSelection =
NULL , |
||
BOOL | toAverage =
false |
||
) |
DllExport bool AverageNormals | ( | BOOL | useThresh = false , |
float | threshold = 0.0f , |
||
BOOL | useSel = true , |
||
BitArray * | normalSelection =
NULL |
||
) |
DllExport bool SpecifyNormals | ( | BOOL | useSel = true , |
BitArray * | normalSelection =
NULL |
||
) |
DllExport bool MakeNormalsExplicit | ( | BOOL | useSel = true , |
BitArray * | normalSelection =
NULL , |
||
bool | value = true |
||
) |
DllExport bool ResetNormals | ( | BOOL | useSel = true , |
BitArray * | normalSelection =
NULL |
||
) |