#define PRECICE_ASSERT(...)
Linear edge of a mesh, defined by two Vertex objects.
Triangle of a mesh, defined by three vertices.
double getArea() const
Returns the surface area of the triangle.
int getDimensions() const
Returns dimensionalty of space the triangle is embedded in.
std::array< Vertex *, 3 > _vertices
Vertices defining the triangle, sorted by Vertex::getID()
iterator begin()
Returns a read-only random-access iterator to the begin (0) of the vertex range [0,...
const_iterator cbegin() const
Returns a read-only random-access iterator to the begin (0) of the vertex range [0,...
bool operator<(const Triangle &other) const
Weak ordering based on vertex ids.
iterator end()
Returns a read-only random-access iterator to the end (3) of the vertex range [0,1,...
double getEnclosingRadius() const
Returns the radius of the circle enclosing the triangle.
Eigen::VectorXd computeNormal() const
Computes the normal of the triangle.
Vertex & vertex(int i)
Returns triangle vertex with index 0, 1 or 2.
const_iterator iterator
Type of the read-only random access vertex iterator.
bool operator==(const Triangle &other) const
Compares two Triangles for equality.
const Eigen::VectorXd getCenter() const
Returns the barycenter of the triangle.
const_iterator cend() const
Returns a read-only random access iterator to the end (3) of the vertex range [0,1,...
bool operator!=(const Triangle &other) const
Not equal, implemented in terms of equal.
IndexRangeIterator< const Triangle, const Vertex::RawCoords > const_iterator
Type of the read-only const random-access iterator over Vertex coords.
static constexpr int vertexCount
Amount of vertices.
Triangle(Edge &edgeOne, Edge &edgeTwo, Edge &edgeThree)
Constructor based on 3 edges.
std::array< double, 3 > RawCoords
std::ostream & operator<<(std::ostream &os, const BoundingBox &bb)
Main namespace of the precice library.