0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported

Fix ExportCGNS()
This commit is contained in:
eap 2011-08-10 12:49:49 +00:00
parent 34bcb9e1fb
commit 54d766ea04

View File

@ -1760,6 +1760,8 @@ class Mesh:
def ExportCGNS(self, f, overwrite=1, meshPart=None):
if isinstance( meshPart, list ):
meshPart = self.GetIDSource( meshPart, SMESH.ALL )
if isinstance( meshPart, Mesh ):
meshPart = meshPart.mesh
elif not meshPart:
meshPart = self.mesh
self.mesh.ExportCGNS(meshPart, f, overwrite)