38 inline unsigned int getNumIndices()
const {
return static_cast<unsigned int>(_indices.size()); }
40 inline int getIndexAt(
unsigned int index)
const {
return _indices[index]; }
42 inline void addIndex(
int index) { _indices.push_back(index); }
45 inline unsigned int getNumTextelIndices()
const {
return static_cast<unsigned int>(_tindices.size()); }
65 std::vector<int> _indices;
68 std::vector<int> _tindices;
Defines the mesh component: an face holding a list of up to 100 indices.
virtual ~WEMIndexedFace()
Standard destructor.
unsigned int getNumIndices() const
Returns the number of nodes.
unsigned int getNumTextelIndices() const
Returns the number of textels.
int getTextelIndexAt(unsigned int index) const
Returns the textel index at the given index in the face.
WEMIndexedFace()
Standard constructor.
void addIndex(int index)
Adds an index (dynamic).
void setNormal(Vector3 normal)
Sets the normal.
WEMIndexedFace(const WEMIndexedFace &f)
Standard copy constructor.
WEMVector< WEMIndexedFace > * tessellate(WEMPatch *wemPatch)
Partitions concave polygons.
void addTextelIndex(int index)
Returns the textel index (dynamic).
Vector3 getNormal() const
Returns the normal.
void mirror()
Mirrors the face.
int getIndexAt(unsigned int index) const
Returns the index at the given index in the face.
Base class for triangle and quad patches.
Dynamic templated vector.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.