utils: handle infinite face
This commit is contained in:
parent
17a26e52f0
commit
28fb7a8b0c
2
utils.py
2
utils.py
|
@ -293,6 +293,8 @@ def getElementPos(obj):
|
|||
if face:
|
||||
surface = face.Surface
|
||||
if str(surface) == '<Plane object>':
|
||||
if not face.countElement('Edge'):
|
||||
return face.Placement.Base
|
||||
return face.BoundBox.Center
|
||||
# pos = surface.Position
|
||||
elif all( hasattr(surface,a) for a in ['Axis','Center','Radius'] ):
|
||||
|
|
Loading…
Reference in New Issue
Block a user