Commit 2c86399e by Christophe Geuzaine

Recursive Delete should (try to) delete curve -tag

parent 1cc64e2a
Pipeline #285 passed with stage
in 9 minutes 33 seconds
......@@ -1041,8 +1041,10 @@ void DeleteSurface(int is, bool recursive)
if(c->beg) vv.insert(c->beg->Num);
if(c->end) vv.insert(c->end->Num);
}
for(std::set<int>::iterator it = cc.begin(); it != cc.end(); it++)
for(std::set<int>::iterator it = cc.begin(); it != cc.end(); it++){
DeleteCurve(*it);
DeleteCurve(-*it);
}
for(std::set<int>::iterator it = vv.begin(); it != vv.end(); it++)
DeletePoint(*it);
}
......@@ -1078,8 +1080,10 @@ void DeleteVolume(int iv, bool recursive)
}
for(std::set<int>::iterator it = ss.begin(); it != ss.end(); it++)
DeleteSurface(*it);
for(std::set<int>::iterator it = cc.begin(); it != cc.end(); it++)
for(std::set<int>::iterator it = cc.begin(); it != cc.end(); it++){
DeleteCurve(*it);
DeleteCurve(-*it);
}
for(std::set<int>::iterator it = vv.begin(); it != vv.end(); it++)
DeletePoint(*it);
}
......@@ -2331,7 +2335,7 @@ static void RemoveDegenerateCurves()
List_Read(All, i, &c);
if(c->degenerate()) {
DeleteCurve(c->Num);
// DeleteCurve(-c->Num);
DeleteCurve(-c->Num);
}
}
}
......@@ -2429,7 +2433,6 @@ static void RemoveDegenerateSurfaces()
List_Delete (ll);
List_Delete (ll2);
}
printf("Deleting Surface %d\n",s->Num);
DeleteSurface(s->Num);
}
}
......
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