Calculates the barycentric coordinates of a coordinate on the given vertex/edge/triangle and stores t...
std::vector< WeightedElement > _weightedElements
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.
double distance() const
Returns the projection distance.
const std::vector< WeightedElement > & getWeightedElements() const
Get the weights and indices of the calculated interpolation.
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.
std::ostream & operator<<(std::ostream &out, Mapping::MeshRequirement val)
Main namespace of the precice library.
Struct that contains weight and index of a vertex.