|
preCICE v3.3.0
|
Tetrahedron of a mesh, defined by 4 vertices. More...
#include <Tetrahedron.hpp>
Public Member Functions | |
| Tetrahedron (Vertex &vertexOne, Vertex &vertexTwo, Vertex &vertexThree, Vertex &vertexFour) | |
| int | getDimensions () const |
| Returns dimensionalty of space the Tetrahedron is embedded in. | |
| Vertex & | vertex (int i) |
| Returns tetrahedron vertex with index 0, 1, 2 or 3. | |
| const Vertex & | vertex (int i) const |
| Returns const tetrahedron vertex with index 0, 1, 2 or 3. | |
| double | getVolume () const |
| Returns the unsigned volume of the tetrahedron. | |
| const Eigen::VectorXd | getCenter () const |
| Returns the barycenter of the tetrahedron. | |
| double | getEnclosingRadius () const |
| Returns the radius of the sphere enclosing the tetrahedron. | |
| bool | operator== (const Tetrahedron &other) const |
| Compares two Tetrahedrons for equality. | |
| bool | operator!= (const Tetrahedron &other) const |
| Not equal, implemented in terms of equal. | |
| bool | operator< (const Tetrahedron &other) const |
| Weak ordering based on vertex ids. | |
Static Public Attributes | |
| static constexpr int | vertexCount {4} |
| Amount of vertices. | |
Private Attributes | |
| std::array< Vertex *, 4 > | _vertices |
| Vertices defining the Tetrahedron. | |
Tetrahedron of a mesh, defined by 4 vertices.
Definition at line 16 of file Tetrahedron.hpp.
| precice::mesh::Tetrahedron::Tetrahedron | ( | Vertex & | vertexOne, |
| Vertex & | vertexTwo, | ||
| Vertex & | vertexThree, | ||
| Vertex & | vertexFour ) |
Constructor based on 4 vertices
The vertices will be sorted by Vertex::getID(). This allows to weakly order tetrahedra.
Definition at line 12 of file Tetrahedron.cpp.
| const Eigen::VectorXd precice::mesh::Tetrahedron::getCenter | ( | ) | const |
Returns the barycenter of the tetrahedron.
Definition at line 50 of file Tetrahedron.cpp.
| int precice::mesh::Tetrahedron::getDimensions | ( | ) | const |
Returns dimensionalty of space the Tetrahedron is embedded in.
Definition at line 45 of file Tetrahedron.cpp.
| double precice::mesh::Tetrahedron::getEnclosingRadius | ( | ) | const |
Returns the radius of the sphere enclosing the tetrahedron.
Definition at line 55 of file Tetrahedron.cpp.
| double precice::mesh::Tetrahedron::getVolume | ( | ) | const |
Returns the unsigned volume of the tetrahedron.
Definition at line 40 of file Tetrahedron.cpp.
| bool precice::mesh::Tetrahedron::operator!= | ( | const Tetrahedron & | other | ) | const |
Not equal, implemented in terms of equal.
Definition at line 70 of file Tetrahedron.cpp.
|
inline |
Weak ordering based on vertex ids.
Definition at line 65 of file Tetrahedron.hpp.
| bool precice::mesh::Tetrahedron::operator== | ( | const Tetrahedron & | other | ) | const |
Compares two Tetrahedrons for equality.
Two Tetrahedrons are equal if their vertices are the same, up to permutations
Definition at line 64 of file Tetrahedron.cpp.
|
inline |
Returns tetrahedron vertex with index 0, 1, 2 or 3.
Definition at line 78 of file Tetrahedron.hpp.
|
inline |
Returns const tetrahedron vertex with index 0, 1, 2 or 3.
Definition at line 84 of file Tetrahedron.hpp.
|
private |
Vertices defining the Tetrahedron.
Definition at line 73 of file Tetrahedron.hpp.
|
staticconstexpr |
Amount of vertices.
Definition at line 19 of file Tetrahedron.hpp.