From 43e3eae2807c2c606caab619e2c43ecf7d60a06f Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 6 Sep 2022 12:59:29 +0300 Subject: [PATCH] Correct test --- src/PythonAPI/Test/TestCR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.2