From: eap Date: Tue, 6 Aug 2013 15:16:46 +0000 (+0000) Subject: 021980: [CEA 708] Import/export GMF does work only if the file extension is ".mesh" X-Git-Tag: V7_3_0a1~225 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de76274176ffcb3e4437ccab783889462ebc9db0;p=modules%2Fsmesh.git 021980: [CEA 708] Import/export GMF does work only if the file extension is ".mesh" Doc about allowed file extension. --- diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index d47c70c85..ef4c73e57 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -551,7 +551,9 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): aMeshes = [ Mesh(self, self.geompyD, m) for m in aSmeshMeshes ] return aMeshes, aStatus - ## Creates a Mesh object importing data from the given GMF file + ## Creates a Mesh object importing data from the given GMF file. + # GMF files have .mesh extension for the ASCII format and .meshb for + # the bynary format. # @return [ an instance of Mesh class, SMESH.ComputeError ] # @ingroup l2_impexp def CreateMeshesFromGMF( self, theFileName ): @@ -1643,7 +1645,9 @@ class Mesh: meshPart = self.mesh self.mesh.ExportCGNS(meshPart, f, overwrite) - ## Exports the mesh in a file in GMF format + ## Exports the mesh in a file in GMF format. + # GMF files must have .mesh extension for the ASCII format and .meshb for + # the bynary format. Other extensions are not allowed. # @param f is the file name # @param meshPart a part of mesh (group, sub-mesh) to export instead of the mesh # @ingroup l2_impexp