1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

OCC22300 Debugging information is dumped in optimized version by STL reading API

This commit is contained in:
KGV 2011-04-28 15:51:02 +00:00 committed by bugmaster
parent 8a2427055a
commit ed48237999

View File

@ -27,7 +27,7 @@ static const int SIZEOF_STL_FACET = 50;
static const int STL_MIN_FILE_SIZE = 284;
static const int ASCII_LINES_PER_FACET = 7;
//=============== =======================================================
//=======================================================================
//function : WriteInteger
//purpose : writing a Little Endian 32 bits integer
//=======================================================================
@ -302,9 +302,9 @@ Handle_StlMesh_Mesh RWStl::ReadFile(const OSD_Path& aPath)
IsAscii = Standard_False;
}
}
printf("%s\n",(IsAscii?"ascii":"binary"));
#ifdef DEB
cout << (IsAscii ? "ascii\n" : "binary\n");
#endif
file.Close();
if (IsAscii) {
@ -437,8 +437,9 @@ Handle_StlMesh_Mesh RWStl::ReadAscii(const OSD_Path& aPath)
// skip header
while (getc(file) != '\n');
cout<< "start mesh\n";
#ifdef DEB
cout << "start mesh\n";
#endif
ReadMesh = new StlMesh_Mesh();
ReadMesh->AddDomain();
@ -469,8 +470,9 @@ Handle_StlMesh_Mesh RWStl::ReadAscii(const OSD_Path& aPath)
fscanf(file,"%*s");
}
cout<< "end mesh\n"<<endl;
#ifdef DEB
cout << "end mesh\n";
#endif
fclose(file);
return ReadMesh;