19 Eigen::Vector3d location(0.0, 0.0, 0.0);
44 Eigen::Vector3d location(0.0, 0.4, 0.0);
53 BOOST_TEST(polation.
distance() == 0);
68 Eigen::Vector3d location(0.0, 0.4, 0.12);
77 BOOST_TEST(polation.
distance() == 0.12);
97 Eigen::Vector3d location(1.0, 0.6, 0.0);
99 Polation polation(location, triangle);
106 BOOST_TEST(polation.
distance() == 0);
127 Eigen::Vector3d location(1.0, 0.6, 0.14);
129 Polation polation(location, triangle);
136 BOOST_TEST(polation.
distance() == 0.14);
152 Eigen::Vector3d location(0.0, 3.0, 0.0);
162 BOOST_TEST(polation.
distance() == 0);
182 Eigen::Vector3d location(4.0, 0.6, 0.0);
184 Polation polation(location, triangle);
192 BOOST_TEST(polation.
distance() == 0);
211 Eigen::Vector3d location(0.15, 0.25, 0.40);
220 BOOST_TEST(polation.
distance() == 0);
239 Eigen::Vector3d location(-0.15, 0.25, 0.40);
249 BOOST_TEST(polation.
distance() == 0);
266 Eigen::Vector3d location(1 + 1e-15, -1e-16, 0.0);
282 Eigen::Vector3d location(0.5 + 1e-15, 0.5 + 1e-15, 1e-14);
284 Polation polation(location, triangle);
299 Eigen::Vector3d location(1 - 1e-15, -1e-15, -1e-15);
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(VertexInterpolation)
#define PRECICE_TEST(...)
Calculates the barycentric coordinates of a coordinate on the given vertex/edge/triangle and stores t...
bool isInterpolation() const
Check whether all the weights are positive, which means it is interpolation.
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.
Eigen::VectorXd computeNormal() const
Computes the normal of the triangle.
Eigen::VectorXd getCoords() const
Returns the coordinates of the vertex.
contains data mapping from points to meshes.
Main namespace of the precice library.