Updating CadQuery.
This commit is contained in:
parent
ea257f8b6a
commit
6323b21881
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user