From 1e47fd4dbc9714b3aba4e3558d7d717f71faeb01 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 28 Apr 2021 22:37:46 +0200 Subject: [PATCH] Yeah ! smesh peut parler avec le reste du monde sans passer par fichier --- src/SMESH_SWIG/smeshBuilder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index e80de4279..891edf720 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -2357,8 +2357,10 @@ class Mesh(metaclass = MeshMeta): return self.mesh.ExportPartToMEDCoupling(meshPart, auto_groups, autoDimension, fields, geomAssocFields, z_tolerance) else: - return self.mesh.ExportMEDCoupling(auto_groups, autoDimension) - + intPtr = self.mesh.ExportMEDCoupling(auto_groups, autoDimension) + import medcoupling + dab = medcoupling.FromPyIntPtrToDataArrayByte(intPtr) + return medcoupling.MEDFileMesh.New(dab) def ExportMED(self, *args, **kwargs): """ -- 2.39.2