Commit 2cf6f064 authored by Mike Kremer's avatar Mike Kremer

Added another unit test.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@232 66977474-1d4b-4f09-8fe9-267525286df2
parent c523c0d6
......@@ -769,6 +769,20 @@ TEST_F(PolyhedralMeshBase, STLCompliance) {
std::for_each(mesh_.cells_begin(), mesh_.cells_end(), p);
}
TEST_F(PolyhedralMeshBase, DeleteCellTest1) {
generatePolyhedralMesh(mesh_);
std::vector<HalfFaceHandle> hfs = mesh_.cell(CellHandle(0)).halffaces();
mesh_.delete_cell(CellHandle(0));
for(std::vector<HalfFaceHandle>::const_iterator hf_it = hfs.begin(),
hf_end = hfs.end(); hf_it != hf_end; ++hf_it) {
EXPECT_EQ(PolyhedralMesh::InvalidCellHandle, mesh_.incident_cell(*hf_it));
}
}
TEST_F(PolyhedralMeshBase, DeleteLastVertexTestBU) {
generatePolyhedralMesh(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