From: jfa Date: Tue, 6 Sep 2022 08:31:30 +0000 (+0300) Subject: Correct test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d6dec75f19466668dc4795e0fb380d2dcdb2ab5;p=modules%2Fgeom.git Correct test --- 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)