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

Bug fixed

parent cca307fc
No related branches found
No related tags found
No related merge requests found
......@@ -1380,22 +1380,15 @@ void bowyerWatsonFrontal(GFace *gf,
int ITERATION = 0;
while (1){
++ITERATION;
/* if(ITERATION % 10== 0 && CTX::instance()->mesh.saveAll){
/*
if(ITERATION % 10== 0 && CTX::instance()->mesh.saveAll){
char name[245];
sprintf(name,"delFrontal_GFace_%d_Layer_%d.pos",gf->tag(),ITERATION);
_printTris (name, AllTris.begin(), AllTris.end(), &DATA);
sprintf(name,"delFrontal_GFace_%d_Layer_%d_Active.pos",gf->tag(),ITERATION);
_printTris (name, ActiveTris.begin(), ActiveTris.end(), &DATA);
}*/
/* if(ITER % 100== 0){
char name[245];
sprintf(name,"delfr2d%d-ITER%d.pos",gf->tag(),ITER);
_printTris (name, AllTris, Us,Vs,true);
// sprintf(name,"delfr2dA%d-ITER%d.pos",gf->tag(),ITER);
// _printTris (name, ActiveTris, Us,Vs,false);
}
*/
// printf("active_tris.size = %d\n",ActiveTris.size());
if (!ActiveTris.size())break;
MTri3 *worst = (*ActiveTris.begin());
ActiveTris.erase(ActiveTris.begin());
......@@ -1411,23 +1404,10 @@ void bowyerWatsonFrontal(GFace *gf,
insertAPoint(gf, AllTris.end(), newPoint, metric, DATA, AllTris, &ActiveTris, worst);
}
}
/* if(ITER % 1== 0){
char name[245];
sprintf(name,"frontal%d-ITER%d.pos",gf->tag(),ITER);
_printTris (name, AllTris, Us,Vs,false);
}
*/
}
nbSwaps = edgeSwapPass(gf, AllTris, SWCR_QUAL, DATA);
/*
char name[245];
sprintf(name,"frontal%d-real.pos", gf->tag());
_printTris (name, AllTris.begin(), AllTris.end(), DATA,false);
sprintf(name,"frontal%d-param.pos", gf->tag());
_printTris (name, AllTris.begin(), AllTris.end(), DATA,true);
*/
transferDataStructure(gf, AllTris, DATA);
// removeThreeTrianglesNodes(gf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment