Trying to get the sphere non-centering work as expected.

This commit is contained in:
Jeremy Wright 2015-07-16 21:54:57 -04:00
parent d63e3ae591
commit f42a63c7d1

View File

@ -2336,12 +2336,14 @@ class Workplane(CQ):
"""
(xp, yp, zp) = pnt.toTuple()
if centered[0]:
xp -= radius * direct.x
if centered[1]:
yp -= radius * direct.y
if centered[2]:
zp -= radius * direct.z
if not centered[0]:
xp += radius * direct.x
if not centered[1]:
yp += radius * direct.y
if not centered[2]:
zp += radius * direct.z
return Solid.makeSphere(radius, Vector(xp, yp, zp), direct, angle1, angle2, angle3)