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

don't print dirty entities. don't call Coherence_PS.

parent 5694e596
No related branches found
No related tags found
No related merge requests found
// $Id: Print_Geo.cpp,v 1.17 2001-08-13 07:22:15 geuzaine Exp $ // $Id: Print_Geo.cpp,v 1.18 2001-08-13 15:24:54 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Geo.h" #include "Geo.h"
...@@ -46,7 +46,7 @@ void Print_Curve(void *a, void *b){ ...@@ -46,7 +46,7 @@ void Print_Curve(void *a, void *b){
int i; int i;
c = *(Curve**)a; c = *(Curve**)a;
if(c->Num < 0)return; if(c->Num < 0 || c->Dirty)return;
switch(c->Typ){ switch(c->Typ){
case MSH_SEGM_LINE: case MSH_SEGM_LINE:
...@@ -102,6 +102,8 @@ void Print_Surface(void *a, void *b){ ...@@ -102,6 +102,8 @@ void Print_Surface(void *a, void *b){
int i,j; int i,j;
s = *(Surface**)a; s = *(Surface**)a;
if(s->Dirty) return;
int NUMLOOP = s->Num + 1000000; int NUMLOOP = s->Num + 1000000;
if(s->Typ != MSH_SURF_NURBS){ if(s->Typ != MSH_SURF_NURBS){
...@@ -167,9 +169,9 @@ void Print_Volume(void *a, void *b){ ...@@ -167,9 +169,9 @@ void Print_Volume(void *a, void *b){
int i; int i;
vol = *(Volume**)a; vol = *(Volume**)a;
int NUMLOOP = vol->Num + 1000000; if(vol->Dirty) return;
if(!List_Nbr(vol->Surfaces)) return; int NUMLOOP = vol->Num + 1000000;
fprintf(FOUT,"Surface Loop (%d) = ",NUMLOOP); fprintf(FOUT,"Surface Loop (%d) = ",NUMLOOP);
...@@ -222,7 +224,6 @@ void Print_PhysicalGroups(void *a, void *b){ ...@@ -222,7 +224,6 @@ void Print_PhysicalGroups(void *a, void *b){
} }
void Print_Geo(Mesh *M, char *filename){ void Print_Geo(Mesh *M, char *filename){
Coherence_PS();
if(filename){ if(filename){
FOUT = fopen(filename,"w"); FOUT = fopen(filename,"w");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment