-#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");
- if ( !theMeshDS[0] ) {
- show_shape( TopoDS_Shape(), "avoid warning: show_shape() defined but not used");
+ bool toShow;
+
+ 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
+ }
+
+ if ( toShow ) {
+ show_shape( shape, "avoid warning: show_shape() defined but not used");