Shallow class allowing Mesh to be imported in classes which Mesh owns.
More...
#include <IMesh.hpp>
|
typedef std::pair< int, int > | edge |
| Type representing an edge, two vertex indices.
|
|
typedef int | vertInd |
| Type representing an index of a vertex.
|
|
typedef int | triInd |
| Type representing an index of a triangle.
|
|
Shallow class allowing Mesh to be imported in classes which Mesh owns.
◆ newEdges()
virtual std::vector< std::pair< int, int > > IMesh::newEdges |
( |
int |
triInd, |
|
|
const std::vector< vertInd > & |
vert |
|
) |
| |
|
pure virtual |
Adds triangle's new edges to map.
- Parameters
-
triInd | index of the triangle using the vertices |
vert | Vector of vertex indices being used by the triangle |
- Returns
- Vector of pairs of vectors representing an edge
Implemented in Mesh.
◆ recalcCircum()
virtual void IMesh::recalcCircum |
( |
int |
vertInd | ) |
|
|
pure virtual |
Recalculate the Triangle::circumcircle of all Triangles using vertex represented by vertInd.
- called after coordinates of a Vertex changed using mutator
- Parameters
-
vertInd | Index of changed Vector |
Implemented in Mesh.
◆ removeEdges()
virtual void IMesh::removeEdges |
( |
int |
triInd, |
|
|
const std::vector< edge > & |
rEdge |
|
) |
| |
|
pure virtual |
Remove triangle's old edges from map.
- Parameters
-
triInd | index of triangle using the vertices |
rEdge | Vector of edges that are no longer in use by the triangle |
Implemented in Mesh.
◆ removeVertTri()
virtual void IMesh::removeVertTri |
( |
int |
triInd, |
|
|
std::vector< vertInd > |
rVertInds |
|
) |
| |
|
pure virtual |
Remove triangle index from vertTri.
- Parameters
-
triInd | Index of triangle to be removed |
rVertInds | Old indices used by Triangle |
Implemented in Mesh.
◆ resolvePoints()
virtual std::vector< Vec > IMesh::resolvePoints |
( |
std::vector< vertInd > |
vertInds | ) |
|
|
pure virtual |
Resolves vector of vertex indices to vector of vertex pointers.
- Parameters
-
vertInds | Vector of indices of vertexes |
- Returns
- Vector of pointers to vertexes matching the indices given by pointIndices
- Exceptions
-
std::runtime_error | if index is out of range of valid vertices |
Implemented in Mesh.
◆ updateVertTri()
virtual void IMesh::updateVertTri |
( |
int |
triInd, |
|
|
std::vector< vertInd > |
vertInds |
|
) |
| |
|
pure virtual |
Add Triangle represented by triInd to vertTri.
Implemented in Mesh.
The documentation for this class was generated from the following file: