#include <Face.hpp>
Public Member Functions | |
bool | operator== (Face< DIM > &rOtherFace) |
bool | operator!= (Face< DIM > &rOtherFace) |
Face< DIM > | operator- () |
unsigned | GetNumVertices () const |
void | OrderVerticesAntiClockwise () |
void | AddVertex (c_vector< double, DIM > *pVertex) |
unsigned | GetNumVertices () |
c_vector< double, DIM > & | rGetVertex (unsigned index) |
void | SetVertex (unsigned index, c_vector< double, DIM > *pNewLocation) |
Private Member Functions | |
void | Increment (typename std::vector< c_vector< double, DIM > * >::iterator &rIterator, Face< DIM > &rFace) const |
Private Attributes | |
std::vector< c_vector< double, DIM > * > | mVertices |
A face class for use in the VoronoiTessellation class.
Definition at line 42 of file Face.hpp.
Add a vertex to the Face.
pVertex | the location of the new vertex |
Definition at line 162 of file Face.cpp.
References Face< DIM >::mVertices.
Referenced by VoronoiTessellation< DIM >::Initialise().
Definition at line 168 of file Face.cpp.
References Face< DIM >::mVertices.
Return number of vertices of the Face.
Definition at line 119 of file Face.cpp.
References Face< DIM >::mVertices.
Referenced by VoronoiTessellation< DIM >::GetFaceArea(), VoronoiTessellation< DIM >::GetFacePerimeter(), InventorVoronoiWriter::ScaleAndWrite(), and InventorVoronoiWriter::Write().
void Face< DIM >::Increment | ( | typename std::vector< c_vector< double, DIM > * >::iterator & | rIterator, | |
Face< DIM > & | rFace | |||
) | const [inline, private] |
Increment the Face vertex iterator.
Definition at line 47 of file Face.cpp.
References Face< DIM >::mVertices.
Referenced by Face< DIM >::operator==().
Return a new face in which the order of the vertices is reversed.
Definition at line 106 of file Face.cpp.
References Face< DIM >::mVertices.
Compare two faces for equality. Two faces are the same if their vertices differ only by cyclic permutation.
rOtherFace | the Face to compare to |
Definition at line 58 of file Face.cpp.
References Face< DIM >::Increment(), and Face< DIM >::mVertices.
void Face< DIM >::OrderVerticesAntiClockwise | ( | ) | [inline] |
Reorder the vertices of the Face anticlockwise.
Definition at line 125 of file Face.cpp.
References Face< DIM >::mVertices.
c_vector< double, DIM > & Face< DIM >::rGetVertex | ( | unsigned | index | ) | [inline] |
Get the Vertex with a given index.
index | the index of the Vertex in the Face |
Definition at line 174 of file Face.cpp.
References Face< DIM >::mVertices.
Referenced by VoronoiTessellation< DIM >::GetFaceArea(), VoronoiTessellation< DIM >::GetFacePerimeter(), InventorVoronoiWriter::ScaleAndWrite(), and InventorVoronoiWriter::Write().
void Face< DIM >::SetVertex | ( | unsigned | index, | |
c_vector< double, DIM > * | pNewLocation | |||
) | [inline] |
Reset the location of the Vertex with a given index.
index | the index of the Vertex in the Face | |
pNewLocation | the new location of the Vertex |
Definition at line 180 of file Face.cpp.
References Face< DIM >::mVertices.
The vertices of the face, in anticlockwise order. Each vertex must be distinct.
This member variable is public as it is accessed directly by VoronoiTessellation methods.
Definition at line 53 of file Face.hpp.
Referenced by Face< DIM >::AddVertex(), Face< DIM >::GetNumVertices(), Face< DIM >::Increment(), Face< DIM >::operator-(), Face< DIM >::operator==(), Face< DIM >::OrderVerticesAntiClockwise(), Face< DIM >::rGetVertex(), and Face< DIM >::SetVertex().