-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
-#ifdef _DEBUG_
-//#define _MYDEBUG_
#include "SMESH_File.hxx"
#include "SMESH_Comment.hxx"
-#endif
+#include "utilities.h"
using namespace std;
using boost::polygon::x;
// }
// -------------------------------------------------------------------------------------
-#ifdef _MYDEBUG_
+
// 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;
+
const char* fileName = "/misc/dn25/salome/eap/salome/misc/Code/C++/MAdebug.txt";
const char* user = getenv("USER");
if ( !user || strcmp( user, "eap" )) return;
} while (edge != cell->incident_edge());
}
}
-#else
- #define inSegmentsToFile(arg) {}
- //void dumpEdge( const TVDEdge* edge ) {}
- //void dumpCell( const TVDCell* cell ) {}
-#endif
}
// -------------------------------------------------------------------------------------
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;
text << "\n";
file.write( text.c_str(), text.size() );
cout << fileName << endl;
-#endif
}
//================================================================================