From 5d6dec75f19466668dc4795e0fb380d2dcdb2ab5 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 6 Sep 2022 11:31:30 +0300 Subject: [PATCH] Correct test --- src/GEOM_SWIG/GEOM_TestCR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GEOM_SWIG/GEOM_TestCR.py b/src/GEOM_SWIG/GEOM_TestCR.py index 4661e1855..1bf0b2a09 100644 --- a/src/GEOM_SWIG/GEOM_TestCR.py +++ b/src/GEOM_SWIG/GEOM_TestCR.py @@ -34,6 +34,8 @@ geompy = geomBuilder.New() def GetShapeType(theShape): CR = geompy.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") @@ -46,8 +48,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" O = geompy.MakeVertex(0, 0, 0) -- 2.39.2