-# Copyright (C) 2019-2020 CEA/DEN, EDF R&D
+# Copyright (C) 2019-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
def assertPointOnSpline(self, thePoint, theSpline):
point = GeomAPI_Pnt(thePoint.x(), thePoint.y(), 0.0)
- bspline = GeomAPI_BSpline(GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape()))
+ bspline = GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape())
proj = bspline.project(point)
self.assertAlmostEqual(point.distance(proj), 0.0)