mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-15 21:13:07 +05:00
Correct test
This commit is contained in:
parent
59e8fba776
commit
5d6dec75f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user