GenericFace Struct Reference

GenericFace Struct Reference

#include <mesh.h>

Class Description

Contains generic polygon representation.

Can contain all kind of faces from 3 to 16 sides, each item can have different side count.

Definition at line 110 of file mesh.h.

Public Member Functions

unsigned int GetSides (void)
 Returns the sidecount for a given face. More...
 
unsigned int Adjacency (unsigned int i)
 Returns the ith adjacent for the given face. More...
 
unsigned int TCI (unsigned int i)
 Returns the ith TC index for the face. More...
 
void Serialize (Stream &s)
 Serializing. More...
 
const GenericFaceoperator= (const GenericFace &rhs)
 Copies the face values into another instance. More...
 

Public Attributes

Store< unsigned intm_aIndices
 
Store< unsigned intm_aAdjacents
 
Store< unsigned intm_aTCIs
 

Member Function Documentation

unsigned int GetSides ( void  )
inline

Returns the sidecount for a given face.

Definition at line 113 of file mesh.h.

113 { return m_aIndices.ItemCount(); };
Store< unsigned int > m_aIndices
Definition: mesh.h:134
unsigned int ItemCount(void) const
Returns the number of items in the array.
Definition: array.h:645
unsigned int Adjacency ( unsigned int  i)
inline

Returns the ith adjacent for the given face.

Definition at line 115 of file mesh.h.

115 { return m_aAdjacents[i]; };
Store< unsigned int > m_aAdjacents
Definition: mesh.h:135
unsigned int TCI ( unsigned int  i)
inline

Returns the ith TC index for the face.

Definition at line 117 of file mesh.h.

117 { return m_aTCIs[i]; };
Store< unsigned int > m_aTCIs
Definition: mesh.h:136
void Serialize ( Stream s)
inline

Serializing.

Definition at line 119 of file mesh.h.

120  {
123  m_aTCIs.Serialize( s );
124  };
Store< unsigned int > m_aIndices
Definition: mesh.h:134
void Serialize(class Stream &s)
Serializes the the array and its contents from/to a stream.
Definition: stream.h:294
Store< unsigned int > m_aAdjacents
Definition: mesh.h:135
Store< unsigned int > m_aTCIs
Definition: mesh.h:136
GLdouble s
Definition: GLee.h:1173
const GenericFace& operator= ( const GenericFace rhs)
inline

Copies the face values into another instance.

Definition at line 126 of file mesh.h.

127  {
128  rhs.m_aIndices.Copy(m_aIndices);
129  rhs.m_aAdjacents.Copy(m_aAdjacents);
130  rhs.m_aTCIs.Copy(m_aTCIs);
131  return *this;
132  }
Store< unsigned int > m_aIndices
Definition: mesh.h:134
Store< unsigned int > m_aAdjacents
Definition: mesh.h:135
Store< unsigned int > m_aTCIs
Definition: mesh.h:136

Member Data Documentation

Store<unsigned int> m_aIndices

Definition at line 134 of file mesh.h.

Store<unsigned int> m_aAdjacents

Definition at line 135 of file mesh.h.

Store<unsigned int> m_aTCIs

Definition at line 136 of file mesh.h.


The documentation for this struct was generated from the following file: