Commit fb6f3507 authored by Mike Kremer's avatar Mike Kremer

Added another unit test on garbage collection.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@192 66977474-1d4b-4f09-8fe9-267525286df2
parent a99b1154
......@@ -846,6 +846,24 @@ TEST_F(HexahedralMeshBase, GarbageCollectionTest4) {
EXPECT_EQ(8u, mesh_.n_faces());
}
TEST_F(HexahedralMeshBase, GarbageCollectionTest5) {
generateHexahedralMesh(mesh_);
StatusAttrib status(mesh_);
status[EdgeHandle(0)].set_deleted(true);
status[EdgeHandle(1)].set_deleted(true);
status[EdgeHandle(2)].set_deleted(true);
status.garbage_collection(true);
EXPECT_EQ(1u, mesh_.n_cells());
EXPECT_EQ(8u, mesh_.n_vertices());
EXPECT_EQ(12u, mesh_.n_edges());
EXPECT_EQ(6u, mesh_.n_faces());
}
TEST_F(HexahedralMeshBase, GarbageCollectionTestManifoldness1) {
generateHexahedralMesh(mesh_);
......
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