]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correct test
authorjfa <jfa@opencascade.com>
Tue, 6 Sep 2022 09:59:29 +0000 (12:59 +0300)
committerjfa <jfa@opencascade.com>
Tue, 6 Sep 2022 09:59:29 +0000 (12:59 +0300)
src/PythonAPI/Test/TestCR.py

index 8952537c9a34d8a37a0ba0644dde6e70b49b0244..a029c4c7a8176cf547cdcc2ba98c8b0b669df89f 100644 (file)
@@ -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"