]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[EDF27213] : Fix VTK version detection
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 2 Mar 2023 12:18:07 +0000 (13:18 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 2 Mar 2023 12:18:07 +0000 (13:18 +0100)
src/MEDCoupling_Swig/vtk2medcoupling.py

index 802e2cc20001bc58e5de8de1a93fb767cb71cccb..64a3a2e41c7385fe6e0cd398e1119ee48e8909b5 100644 (file)
@@ -46,7 +46,7 @@ def mesh_convertor_mem(ug):
     c=mc.DataArrayInt(conn)[:]
     ci=mc.DataArrayInt(cla)[:]
     # for pv580
-    if LooseVersion(vtk.VTK_VERSION) >= LooseVersion("8.90.0"):
+    if LooseVersion(vtk.vtkVersion().GetVTKVersion()) >= LooseVersion("8.90.0"):
         ci = ci.deltaShiftIndex()+1
         ci.computeOffsetsFull()
     #