]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[EDF31086] : Improve perf of conversion
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 14 Nov 2024 14:17:23 +0000 (15:17 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 14 Nov 2024 14:17:23 +0000 (15:17 +0100)
src/MEDCoupling_Swig/geom2medcoupling.py

index 3f1c42d27ff0cb232745f703fc46f12f98a364d7..ac5c0f8fc5b67467076e3c99e9bd43998a1ff2af 100644 (file)
@@ -34,6 +34,7 @@ def __to_geomshape_3D(mcmesh):
     geompy = geomBuilder.New()
 
     mcmesh2 = mcmesh.deepCopyConnectivityOnly()
+    mcmesh2.zipCoords()
     vertices = [ geompy.MakeVertex(*list(elt)) for elt in mcmesh2.getCoords()]
 
     mcfaces = mcmesh2.buildDescendingConnectivity()[0]