From: jfa Date: Tue, 6 Sep 2022 09:59:29 +0000 (+0300) Subject: Correct test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43e3eae2807c2c606caab619e2c43ecf7d60a06f;p=modules%2Fshaper.git Correct test --- diff --git a/src/PythonAPI/Test/TestCR.py b/src/PythonAPI/Test/TestCR.py index 8952537c9..a029c4c7a 100644 --- a/src/PythonAPI/Test/TestCR.py +++ b/src/PythonAPI/Test/TestCR.py @@ -13,6 +13,8 @@ from salome.shaper import model, geom def GetShapeType(theShape): CR = geom.CanonicalRecognition() + if CR.isLine(theShape, 0.1)[0]: + return "Line" if CR.isPlane(theShape, 0.1)[0]: if CR.isCircle(theShape, 0.1)[0]: return ("Plane","Circle") @@ -25,8 +27,6 @@ def GetShapeType(theShape): return "Cone" if CR.isCylinder(theShape, 0.1)[0]: return "Cylinder" - if CR.isLine(theShape, 0.1)[0]: - return "Line" return "Not defined"