mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 23:30:33 +05:00
Windows compatibility
This commit is contained in:
parent
a3a6c690ba
commit
b86b991075
@ -118,6 +118,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using SMESH::TPythonDump;
|
using SMESH::TPythonDump;
|
||||||
@ -1236,7 +1237,13 @@ SMESH_Gen_i::CreateMeshesFromGMF( const char* theFileName,
|
|||||||
Unexpect aCatch(SALOME_SalomeException);
|
Unexpect aCatch(SALOME_SalomeException);
|
||||||
|
|
||||||
SMESH::SMESH_Mesh_var aMesh = createMesh();
|
SMESH::SMESH_Mesh_var aMesh = createMesh();
|
||||||
|
#ifdef WIN32
|
||||||
|
char bname[ _MAX_FNAME ];
|
||||||
|
_splitpath( theFileName, NULL, NULL, bname, NULL );
|
||||||
|
string aFileName = bname;
|
||||||
|
#else
|
||||||
string aFileName = basename( theFileName );
|
string aFileName = basename( theFileName );
|
||||||
|
#endif
|
||||||
// publish mesh in the study
|
// publish mesh in the study
|
||||||
if ( CanPublishInStudy( aMesh ) ) {
|
if ( CanPublishInStudy( aMesh ) ) {
|
||||||
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
||||||
|
Loading…
Reference in New Issue
Block a user