Updating CadQuery.

This commit is contained in:
Jeremy Wright 2015-07-16 21:56:06 -04:00
parent ea257f8b6a
commit 6323b21881

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)