Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #40653][CEA] New mesh import export formats with meshio.
[modules/smesh.git]
/
src
/
DriverSTL
/
DriverSTL_R_SMDS_Mesh.cxx
diff --git
a/src/DriverSTL/DriverSTL_R_SMDS_Mesh.cxx
b/src/DriverSTL/DriverSTL_R_SMDS_Mesh.cxx
index ae7e48cca98a1d0b25af2faae85e51dca1d9962b..c838ec8065d6e16f07917ed29016c9862558e32b 100644
(file)
--- a/
src/DriverSTL/DriverSTL_R_SMDS_Mesh.cxx
+++ b/
src/DriverSTL/DriverSTL_R_SMDS_Mesh.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
24 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-142,6
+142,9
@@
Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()
else
aResult = readBinary( file );
else
aResult = readBinary( file );
+ myMesh->Modified();
+ myMesh->CompactMesh();
+
return aResult;
}
return aResult;
}
@@
-235,7
+238,12
@@
Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::readAscii(SMESH_File& theFile) const
theFile.close();
// Open the file
theFile.close();
// Open the file
- FILE* file = fopen( myFile.c_str(),"r");
+#if defined(WIN32) && defined(UNICODE)
+ std::wstring aFile = Kernel_Utils::utf8_decode_s(myFile);
+ FILE* file = _wfopen( aFile.c_str(), L"r");
+#else
+ FILE* file = fopen(myFile.c_str(), "r");
+#endif
// count the number of lines
Standard_Integer nbLines = 0;
// count the number of lines
Standard_Integer nbLines = 0;