]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / SketchPlugin / Test / TestConstraintCoincidenceBSpline.py
index 80ab412e2184e68129521397483d36452db70135..d3debdfde25d0939bc4d3aa5bea50b4ed4eca343 100644 (file)
@@ -1,4 +1,4 @@
-# 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
@@ -99,7 +99,7 @@ class TestCoincidenceBSpline(unittest.TestCase):
 
   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)