-#ifdef _DEBUG_
- const char* type[] ={"COMPOUND","COMPSOLID","SOLID","SHELL","FACE","WIRE","EDGE","VERTEX"};
- BRepTools::Write( shape, SMESH_Comment("/tmp/") << type[shape.ShapeType()] << "_"
- << shape.TShape().operator->() << ".brep");
- toShow = !theMeshDS[0]; // no show
-#else
- toShow = theMeshDS[0]; // no show
-#endif
+
+ if (SALOME::VerbosityActivated())
+ {
+ const char* type[] ={"COMPOUND","COMPSOLID","SOLID","SHELL","FACE","WIRE","EDGE","VERTEX"};
+ BRepTools::Write( shape, SMESH_Comment("/tmp/") << type[shape.ShapeType()] << "_"
+ << shape.TShape().operator->() << ".brep");
+ toShow = !theMeshDS[0]; // no show
+ }
+ else
+ {
+ toShow = theMeshDS[0]; // no show
+ }
+