Correct test

This commit is contained in:
jfa 2022-09-06 11:31:30 +03:00
parent 59e8fba776
commit 5d6dec75f1

View File

@ -34,6 +34,8 @@ geompy = geomBuilder.New()
def GetShapeType(theShape): def GetShapeType(theShape):
CR = geompy.CanonicalRecognition() CR = geompy.CanonicalRecognition()
if CR.isLine(theShape, 0.1)[0]:
return "Line"
if CR.isPlane(theShape, 0.1)[0]: if CR.isPlane(theShape, 0.1)[0]:
if CR.isCircle(theShape, 0.1)[0]: if CR.isCircle(theShape, 0.1)[0]:
return ("Plane","Circle") return ("Plane","Circle")
@ -46,8 +48,6 @@ def GetShapeType(theShape):
return "Cone" return "Cone"
if CR.isCylinder(theShape, 0.1)[0]: if CR.isCylinder(theShape, 0.1)[0]:
return "Cylinder" return "Cylinder"
if CR.isLine(theShape, 0.1)[0]:
return "Line"
return "Not defined" return "Not defined"
O = geompy.MakeVertex(0, 0, 0) O = geompy.MakeVertex(0, 0, 0)