//
#include "GHS3DPlugin_Hypothesis.hxx"
+#include <Basics_DirUtils.hxx>
#include <SMESHDS_Mesh.hxx>
+#include <SMESH_File.hxx>
#include <TCollection_AsciiString.hxx>
std::string GHS3DPlugin_Hypothesis::GetFileName(const GHS3DPlugin_Hypothesis* hyp)
{
std::string aTmpDir = hyp ? hyp->GetWorkingDirectory() : DefaultWorkingDirectory();
+ if ( !SMESH_File( aTmpDir ).exists() )
+ aTmpDir = Kernel_Utils::GetTmpDirByPath( aTmpDir );
+
const char lastChar = *aTmpDir.rbegin();
#ifdef WIN32
if(lastChar != '\\') aTmpDir+='\\';
void MG_Tetra_API::GmfSetKwd(int iMesh, GmfKwdCod what, int nb )
{
- if ( iMesh == 1 )
+ //if ( iMesh == 1 )
{
switch ( what ) {
- case GmfVertices: _nbNodes = nb; break;
- case GmfEdges: _nbEdges = nb; break;
- case GmfTriangles: _nbFaces = nb; break;
+ case GmfVertices: _nbNodes += nb; break;
+ case GmfEdges: _nbEdges += nb; break;
+ case GmfTriangles: _nbFaces += nb; break;
+ case GmfTetrahedra: _nbVolumes += nb; break;
default:;
}
}