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:
parent
2b19ca89c1
commit
b2022dadb0
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user