* Disabled creation of the debugging file "occmesh.rep" when meshing OpenCascade Geometry

This commit is contained in:
Philippose Rajan 2010-03-08 23:14:56 +00:00
parent 9f8f784370
commit 0bf7d1228e

View File

@ -841,9 +841,9 @@ namespace netgen
} }
ofstream problemfile("occmesh.rep"); // ofstream problemfile("occmesh.rep");
problemfile << "SURFACEMESHING" << endl << endl; // problemfile << "SURFACEMESHING" << endl << endl;
if (surfmesherror) if (surfmesherror)
{ {
@ -853,8 +853,8 @@ namespace netgen
if (geom.facemeshstatus[i-1] == -1) if (geom.facemeshstatus[i-1] == -1)
{ {
cout << "Face " << i << endl; cout << "Face " << i << endl;
problemfile << "problem with face " << i << endl; // problemfile << "problem with face " << i << endl;
problemfile << "vertices: " << endl; // problemfile << "vertices: " << endl;
TopExp_Explorer exp0,exp1,exp2; TopExp_Explorer exp0,exp1,exp2;
for ( exp0.Init(TopoDS::Face (geom.fmap(i)), TopAbs_WIRE); exp0.More(); exp0.Next() ) for ( exp0.Init(TopoDS::Face (geom.fmap(i)), TopAbs_WIRE); exp0.More(); exp0.Next() )
{ {
@ -866,22 +866,22 @@ namespace netgen
{ {
TopoDS_Vertex vertex = TopoDS::Vertex(exp2.Current()); TopoDS_Vertex vertex = TopoDS::Vertex(exp2.Current());
gp_Pnt point = BRep_Tool::Pnt(vertex); gp_Pnt point = BRep_Tool::Pnt(vertex);
problemfile << point.X() << " " << point.Y() << " " << point.Z() << endl; // problemfile << point.X() << " " << point.Y() << " " << point.Z() << endl;
} }
} }
} }
problemfile << endl; // problemfile << endl;
} }
cout << endl << endl; cout << endl << endl;
cout << "for more information open IGES/STEP Topology Explorer" << endl; cout << "for more information open IGES/STEP Topology Explorer" << endl;
problemfile.close(); // problemfile.close();
throw NgException ("Problem in Surface mesh generation"); throw NgException ("Problem in Surface mesh generation");
} }
else else
{ {
problemfile << "OK" << endl << endl; // problemfile << "OK" << endl << endl;
problemfile.close(); // problemfile.close();
} }
@ -1384,6 +1384,7 @@ namespace netgen
MESHING3_RESULT res = MeshVolume (mparam, *mesh); MESHING3_RESULT res = MeshVolume (mparam, *mesh);
/*
ofstream problemfile("occmesh.rep",ios_base::app); ofstream problemfile("occmesh.rep",ios_base::app);
problemfile << "VOLUMEMESHING" << endl << endl; problemfile << "VOLUMEMESHING" << endl << endl;
@ -1394,6 +1395,7 @@ namespace netgen
<< mesh->GetNE() << " elements" << endl << endl; << mesh->GetNE() << " elements" << endl << endl;
problemfile.close(); problemfile.close();
*/
if (res != MESHING3_OK) return TCL_ERROR; if (res != MESHING3_OK) return TCL_ERROR;