Skip to content
Snippets Groups Projects
Commit c1975cc8 authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

oops

parent 7c68f8df
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,7 @@ static void removeFromCavity (std::list<faceXtet> & shell, ...@@ -191,6 +191,7 @@ static void removeFromCavity (std::list<faceXtet> & shell,
std::list<faceXtet>::iterator it = std::find(shell.begin(),shell.end(),fxt2); std::list<faceXtet>::iterator it = std::find(shell.begin(),shell.end(),fxt2);
if (it == shell.end()){ if (it == shell.end()){
MTet4 *opposite = toRemove.t1->getNeigh(toRemove.i1); MTet4 *opposite = toRemove.t1->getNeigh(toRemove.i1);
if (opposite){
for (int j=0;j<4;j++){ for (int j=0;j<4;j++){
faceXtet fxt3(opposite,j); faceXtet fxt3(opposite,j);
if (fxt3 == fxt2){ if (fxt3 == fxt2){
...@@ -198,6 +199,7 @@ static void removeFromCavity (std::list<faceXtet> & shell, ...@@ -198,6 +199,7 @@ static void removeFromCavity (std::list<faceXtet> & shell,
} }
} }
} }
}
else shell.erase(it); else shell.erase(it);
} }
} }
...@@ -1082,7 +1084,7 @@ double tetcircumcenter(double a[3], double b[3], double c[3], double d[3], ...@@ -1082,7 +1084,7 @@ double tetcircumcenter(double a[3], double b[3], double c[3], double d[3],
} }
static void memoryCleanup(MTet4Factory &myFactory, std::set<MTet4*, compareTet4Ptr> &allTets){ static void memoryCleanup(MTet4Factory &myFactory, std::set<MTet4*, compareTet4Ptr> &allTets){
int n1 = allTets.size(); // int n1 = allTets.size();
std::set<MTet4*,compareTet4Ptr>::iterator itd = allTets.begin(); std::set<MTet4*,compareTet4Ptr>::iterator itd = allTets.begin();
while(itd != allTets.end()){ while(itd != allTets.end()){
if((*itd)->isDeleted()){ if((*itd)->isDeleted()){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment