Skip to content
Snippets Groups Projects
Commit d49e345e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix quads stat

parent 725bda1a
Branches
Tags
No related merge requests found
// $Id: 3D_Extrude.cpp,v 1.47 2001-09-25 08:19:48 geuzaine Exp $ // $Id: 3D_Extrude.cpp,v 1.48 2001-09-27 15:00:50 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Numeric.h" #include "Numeric.h"
...@@ -621,6 +621,9 @@ void Extrude_Seg (Vertex * V1, Vertex * V2){ ...@@ -621,6 +621,9 @@ void Extrude_Seg (Vertex * V1, Vertex * V2){
s->iEnt = THES->Num; s->iEnt = THES->Num;
s->Num = -s->Num; //Tag quadrangles to re-extrude s->Num = -s->Num; //Tag quadrangles to re-extrude
Tree_Add(THES->Simplexes,&s); Tree_Add(THES->Simplexes,&s);
// This is horrible
THEM->Statistics[8] += 1;
} }
else{ else{
if (are_exist (v3, v2, Tree_Ares)){ if (are_exist (v3, v2, Tree_Ares)){
...@@ -838,8 +841,11 @@ void copy_mesh (Surface * from, Surface * to){ ...@@ -838,8 +841,11 @@ void copy_mesh (Surface * from, Surface * to){
vi[j] = NULL; vi[j] = NULL;
} }
} }
if(vi[3]) if(vi[3]){
news = Create_Quadrangle (vi[0], vi[1], vi[2], vi[3]); news = Create_Quadrangle (vi[0], vi[1], vi[2], vi[3]);
// This is horrible
THEM->Statistics[8] += 1;
}
else else
news = Create_Simplex (vi[0], vi[1], vi[2], NULL); news = Create_Simplex (vi[0], vi[1], vi[2], NULL);
news->iEnt = to->Num; news->iEnt = to->Num;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment