From 8d8f910efd0038dde75d9ea85d2c27fbd65e34fc Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 30 Oct 2017 03:54:50 +0800 Subject: [PATCH] utils.getElementPos now returns center for all shapes --- utils.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils.py b/utils.py index 7ca0e18..821514f 100644 --- a/utils.py +++ b/utils.py @@ -176,8 +176,8 @@ def getElementPos(obj): if face: surface = face.Surface if str(surface) == '': - # pos = face.BoundBox.Center - pos = surface.Position + pos = face.BoundBox.Center + # pos = surface.Position elif all( hasattr(surface,a) for a in ['Axis','Center','Radius'] ): pos = surface.Center elif str(surface).startswith('