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