Salome HOME
Fix: getCellsContainingPoints() in case of polyhedron with a face containing colinear...
[tools/medcoupling.git] / src / MEDCoupling_Swig / vtk2medcoupling.py
index b706b305455540ef67d966abfc403d24ec4dbd38..887db57294518c69f4fe45ad6f67e42ff2346e93 100644 (file)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python3
 #  -*- coding: utf-8 -*-
-# Copyright (C) 2020-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2020-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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()
     #