Added removals of degenerate configurations

This commit is contained in:
Paolo Cignoni 2011-02-04 17:12:20 +00:00
parent c68b61391f
commit cc5645ca46
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ int main(int argc, char *argv[]) {
// After loading check mesh consistency
assert(vcg::tri::UpdateHalfEdges<MyPolyMesh>::CheckConsistency(pm));
HalfedgeQuadClean<MyPolyMesh>::remove_singlets(pm);
HalfedgeQuadClean<MyPolyMesh>::remove_doublets(pm);
vcg::LocalOptimization<MyPolyMesh> loc(pm);
init_heap(pm, loc, adaptive);