3#include <boost/container/static_vector.hpp>
Calculates the barycentric coordinates of a coordinate on the given vertex/edge/triangle and stores t...
const boost::container::static_vector< WeightedElement, 4 > & getWeightedElements() const
Get the weights and indices of the calculated interpolation.
bool isInterpolation() const
Check whether all the weights are positive, which means it is interpolation.
Polation(const Eigen::VectorXd &location, const mesh::Vertex &element)
Calculate projection to a vertex. Weight is always 1.0.
std::size_t nElements() const
Amount of weighted elements.
double distance() const
Returns the projection distance.
boost::container::static_vector< WeightedElement, 4 > _weightedElements
Linear edge of a mesh, defined by two Vertex objects.
Tetrahedron of a mesh, defined by 4 vertices.
Triangle of a mesh, defined by three vertices.
contains data mapping from points to meshes.
std::ostream & operator<<(std::ostream &out, Mapping::MeshRequirement val)
Struct that contains weight and index of a vertex.