mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Fix ExportCGNS()
This commit is contained in:
parent
34bcb9e1fb
commit
54d766ea04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user