]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct test
authorjfa <jfa@opencascade.com>
Tue, 6 Sep 2022 08:31:30 +0000 (11:31 +0300)
committerjfa <jfa@opencascade.com>
Tue, 6 Sep 2022 08:31:30 +0000 (11:31 +0300)
src/GEOM_SWIG/GEOM_TestCR.py

index 4661e1855c45bde4738ff0756473c87634935d9f..1bf0b2a0991b5314052c09cb7c99823b3371eaa7 100644 (file)
@@ -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)