From c08324a5f99a5e0cc1c3052fd6adafe37d3dc937 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 14 Nov 2024 15:17:23 +0100 Subject: [PATCH] [EDF31086] : Improve perf of conversion --- src/MEDCoupling_Swig/geom2medcoupling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MEDCoupling_Swig/geom2medcoupling.py b/src/MEDCoupling_Swig/geom2medcoupling.py index 3f1c42d27..ac5c0f8fc 100644 --- a/src/MEDCoupling_Swig/geom2medcoupling.py +++ b/src/MEDCoupling_Swig/geom2medcoupling.py @@ -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] -- 2.39.2