Commit f0eca8b1 authored by Mike Kremer's avatar Mike Kremer

Added another unit test on non-manifold mesh configurations

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@136 66977474-1d4b-4f09-8fe9-267525286df2
parent e0402213
OVM
Vertices
12
0 0 0
1 0 0
1 1 0
0 1 0
0 0 1
1 0 1
1 1 1
0 1 1
2 1 0
2 1 1
3 1 1
-0.5 0.5 0.5
Edges
20
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 4
1 5
4 0
2 6
7 3
2 8
8 9
9 6
9 10
11 0
11 3
11 7
4 11
Faces
11
4 0 2 4 6
4 8 10 12 14
4 16 10 21 3
4 19 15 22 6
4 0 16 9 18
4 5 20 12 22
4 24 26 28 21
3 7 35 32
3 23 37 34
3 36 14 38
3 18 33 39
Polyhedra
2
6 1 2 5 6 8 11
5 15 17 19 21 7
......@@ -18,6 +18,18 @@ TEST_F(PolyhedralMeshBase, LoadFile) {
EXPECT_EQ(288u, mesh_.n_cells());
}
TEST_F(PolyhedralMeshBase, LoadNonManifoldMesh) {
OpenVolumeMesh::IO::FileManager fileManager;
ASSERT_TRUE(fileManager.readFile("NonManifold.ovm", mesh_));
EXPECT_EQ(12u, mesh_.n_vertices());
EXPECT_EQ(20u, mesh_.n_edges());
EXPECT_EQ(11u, mesh_.n_faces());
EXPECT_EQ(2u, mesh_.n_cells());
}
TEST_F(HexahedralMeshBase, LoadFile) {
OpenVolumeMesh::IO::FileManager fileManager;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment