From: eap Date: Wed, 19 May 2004 06:09:38 +0000 (+0000) Subject: T1.3-8: rm output files after execution X-Git-Tag: current210904~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=baa5a6a8cfa2f823167ff97874618602ad0411d8;p=plugins%2Fhybridplugin.git T1.3-8: rm output files after execution --- diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index bef0179..a6c8718 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -376,12 +376,14 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, #endif const QString aGenericName = (aTmpDir + ( "GHS3D_%1" )).arg( aUniqueNb ); - const QString aFacesFileName = aGenericName + ".faces"; - const QString aPointsFileName = aGenericName + ".points"; - const QString aResultFileName = aGenericName + ".noboite"; - const QString aErrorFileName = aGenericName + ".log"; - - // remove old files + const QString aFacesFileName = aGenericName + ".faces"; // in faces + const QString aPointsFileName = aGenericName + ".points"; // in points + const QString aResultFileName = aGenericName + ".noboite";// out points and volumes + const QString aBadResFileName = aGenericName + ".boite"; // out bad result + const QString aBbResFileName = aGenericName + ".bb"; // out vertex stepsize + const QString aErrorFileName = aGenericName + ".log"; // log + + // remove possible old files QFile( aFacesFileName ).remove(); QFile( aPointsFileName ).remove(); QFile( aResultFileName ).remove(); @@ -452,7 +454,11 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, QFile( aPointsFileName ).remove(); QFile( aResultFileName ).remove(); QFile( aErrorFileName ).remove(); - } + } + // remove other possible files + QFile( aBadResFileName ).remove(); + QFile( aBbResFileName ).remove(); + return Ok; }