0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

At finish using netgen, delete netgen::testout fstream in addition to "test.out" file
This commit is contained in:
eap 2012-03-14 17:32:01 +00:00
parent 2b19ca89c1
commit b2022dadb0

View File

@ -2458,7 +2458,11 @@ bool NETGENPlugin_Mesher::Evaluate(MapShapeNbElems& aResMap)
void NETGENPlugin_Mesher::RemoveTmpFiles() void NETGENPlugin_Mesher::RemoveTmpFiles()
{ {
SMESH_File("test.out").remove(); if ( SMESH_File("test.out").remove() && netgen::testout)
{
delete netgen::testout;
netgen::testout = 0;
}
SMESH_File("problemfaces").remove(); SMESH_File("problemfaces").remove();
SMESH_File("occmesh.rep").remove(); SMESH_File("occmesh.rep").remove();
} }