Contains generic polygon representation.
Can contain all kind of faces from 3 to 16 sides, each item can have different side count.
#include <mesh.h>
Public Member Functions |
|
| unsigned int | GetSides (void) |
| Returns the sidecount for a given face.
|
|
| unsigned int | Adjacency (unsigned int i) |
| Returns the ith adjacent for the given face.
|
|
| unsigned int | TCI (unsigned int i) |
| Returns the ith TC index
for the face. |
|
| void | Serialize (Stream &s) |
| Serializing. |
|
| const GenericFace & | operator= (const GenericFace &rhs) |
| Copies the face values into another
instance. |
|
Public Attributes |
|
| Store< unsigned int > | m_aIndices |
| Store< unsigned int > | m_aAdjacents |
| Store< unsigned int > | m_aTCIs |
| unsigned int GetSides | ( | void | ) | [inline] |
Returns the sidecount for a given face.
Definition at line 101 of file mesh.h.
{ return m_aIndices.ItemCount(); };
| unsigned int Adjacency | ( | unsigned int | i | ) | [inline] |
Returns the ith adjacent for the given face.
Definition at line 103 of file mesh.h.
{ return m_aAdjacents[i]; };
| unsigned int TCI | ( | unsigned int | i | ) | [inline] |
| void Serialize | ( | Stream & | s | ) | [inline] |
Serializing.
Definition at line 107 of file mesh.h.
{
m_aIndices.Serialize( s );
m_aAdjacents.Serialize( s );
m_aTCIs.Serialize( s );
};
| const GenericFace& operator= | ( | const GenericFace & | rhs | ) | [inline] |
Copies the face values into another instance.
Definition at line 114 of file mesh.h.
{
rhs.m_aIndices.Copy(m_aIndices);
rhs.m_aAdjacents.Copy(m_aAdjacents);
rhs.m_aTCIs.Copy(m_aTCIs);
return *this;
}
| Store<unsigned int> m_aIndices |
| Store<unsigned int> m_aAdjacents |