Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #40649][CEA] Export Structured mesh in CGNS format for 2DQuadrangle and 3DHexahe...
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_MAT2d.cxx
diff --git
a/src/SMESHUtils/SMESH_MAT2d.cxx
b/src/SMESHUtils/SMESH_MAT2d.cxx
index fbbb0553f1579c2303c3382d092c9480857885f9..68cdf8aeada76f050da8320a5a515cb42e773c64 100644
(file)
--- a/
src/SMESHUtils/SMESH_MAT2d.cxx
+++ b/
src/SMESHUtils/SMESH_MAT2d.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-202
0 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-202
4 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-46,11
+46,9
@@
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
-#ifdef _DEBUG_
-//#define _MYDEBUG_
#include "SMESH_File.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_File.hxx"
#include "SMESH_Comment.hxx"
-#
endif
+#
include "utilities.h"
using namespace std;
using boost::polygon::x;
using namespace std;
using boost::polygon::x;
@@
-155,12
+153,13
@@
namespace
// }
// -------------------------------------------------------------------------------------
// }
// -------------------------------------------------------------------------------------
-#ifdef _MYDEBUG_
+
// writes segments into a txt file readable by voronoi_visualizer
void inSegmentsToFile( vector< InSegment>& inSegments)
{
// writes segments into a txt file readable by voronoi_visualizer
void inSegmentsToFile( vector< InSegment>& inSegments)
{
- if (
inSegments.size() > 1000
)
+ if (
inSegments.size() > 1000 || !SALOME::VerbosityActivated()
)
return;
return;
+
const char* fileName = "/misc/dn25/salome/eap/salome/misc/Code/C++/MAdebug.txt";
const char* user = getenv("USER");
if ( !user || strcmp( user, "eap" )) return;
const char* fileName = "/misc/dn25/salome/eap/salome/misc/Code/C++/MAdebug.txt";
const char* user = getenv("USER");
if ( !user || strcmp( user, "eap" )) return;
@@
-219,11
+218,6
@@
namespace
} while (edge != cell->incident_edge());
}
}
} while (edge != cell->incident_edge());
}
}
-#else
- #define inSegmentsToFile(arg) {}
- //void dumpEdge( const TVDEdge* edge ) {}
- //void dumpCell( const TVDCell* cell ) {}
-#endif
}
// -------------------------------------------------------------------------------------
}
// -------------------------------------------------------------------------------------
@@
-420,7
+414,9
@@
namespace
void bndSegsToMesh( const vector< vector< BndSeg > >& bndSegsPerEdge )
{
void bndSegsToMesh( const vector< vector< BndSeg > >& bndSegsPerEdge )
{
-#ifdef _MYDEBUG_
+ if (bndSegsPerEdge.empty() || !SALOME::VerbosityActivated())
+ return;
+
if ( !getenv("bndSegsToMesh")) return;
map< const TVDVertex *, int > v2Node;
map< const TVDVertex *, int >::iterator v2n;
if ( !getenv("bndSegsToMesh")) return;
map< const TVDVertex *, int > v2Node;
map< const TVDVertex *, int >::iterator v2n;
@@
-470,7
+466,6
@@
namespace
text << "\n";
file.write( text.c_str(), text.size() );
cout << fileName << endl;
text << "\n";
file.write( text.c_str(), text.size() );
cout << fileName << endl;
-#endif
}
//================================================================================
}
//================================================================================