mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 03:40: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):
|
def ExportCGNS(self, f, overwrite=1, meshPart=None):
|
||||||
if isinstance( meshPart, list ):
|
if isinstance( meshPart, list ):
|
||||||
meshPart = self.GetIDSource( meshPart, SMESH.ALL )
|
meshPart = self.GetIDSource( meshPart, SMESH.ALL )
|
||||||
|
if isinstance( meshPart, Mesh ):
|
||||||
|
meshPart = meshPart.mesh
|
||||||
elif not meshPart:
|
elif not meshPart:
|
||||||
meshPart = self.mesh
|
meshPart = self.mesh
|
||||||
self.mesh.ExportCGNS(meshPart, f, overwrite)
|
self.mesh.ExportCGNS(meshPart, f, overwrite)
|
||||||
|
Loading…
Reference in New Issue
Block a user