23 auto &v0 = dest.createVertex(Vector2d::Constant(4.0));
29 auto p = [](
const mesh::Vertex &v) {
return v.isTagged(); };
34 BOOST_TEST(dest.nVertices() == 2);
35 BOOST_TEST(dest.vertex(0) == v0);
36 BOOST_TEST(dest.vertex(1) == v1);
46 auto &v0 = dest.createVertex(Vector3d::Constant(4.0));
52 auto p = [](
const mesh::Vertex &v) {
return v.isTagged(); };
57 BOOST_TEST(dest.nVertices() == 2);
58 BOOST_TEST(dest.vertex(0) == v0);
59 BOOST_TEST(dest.vertex(1) == v1);
69 auto &v0 = dest.createVertex(Vector3d::Constant(4.0));
80 auto p = [](
const mesh::Vertex &v) {
return v.isTagged(); };
84 BOOST_TEST(dest.nVertices() == 3);
85 BOOST_TEST(dest.vertex(0) == v0);
86 BOOST_TEST(dest.vertex(1) == v1);
87 BOOST_TEST(dest.vertex(2) == v2);
90 BOOST_TEST(dest.edges().size() == 1);
91 BOOST_TEST(dest.edges()[0] == e0);
101 dest.createVertex(Vector3d::Constant(4.0));
114 auto p = [](
const mesh::Vertex &v) {
return v.isTagged(); };
118 BOOST_TEST(dest.nVertices() == 4);
121 BOOST_TEST(dest.triangles().size() == 1);
122 BOOST_TEST(dest.triangles()[0] == t1);
132 dest.createVertex(Vector3d::Constant(4.0));
147 auto p = [](
const mesh::Vertex &v) {
return v.isTagged(); };
151 BOOST_TEST(dest.nVertices() == 5);
154 BOOST_TEST(dest.tetrahedra().size() == 1);
155 BOOST_TEST(dest.tetrahedra()[0] == t1);
BOOST_AUTO_TEST_CASE(Vertices2D)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
Container and creator for meshes.
Triangle & createTriangle(Edge &edgeOne, Edge &edgeTwo, Edge &edgeThree)
Creates and initializes a Triangle object.
Tetrahedron & createTetrahedron(Vertex &vertexOne, Vertex &vertexTwo, Vertex &vertexThree, Vertex &vertexFour)
Creates and initializes a Tetrahedron object.
Edge & createEdge(Vertex &vertexOne, Vertex &vertexTwo)
Creates and initializes an Edge object.
Vertex & createVertex(const Eigen::VectorXd &coords)
Creates and initializes a Vertex object.
void filterMesh(Mesh &destination, const Mesh &source, UnaryPredicate p)
Main namespace of the precice library.