Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fixed the centering of a sphere object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Jul 13, 2015
1 parent dd789cc commit 6822944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cadquery/CQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -2337,11 +2337,11 @@ def _makesphere(pnt):
(xp, yp, zp) = pnt.toTuple()

if centered[0]:
xp -= radius
xp -= radius * direct.x
if centered[1]:
yp -= radius
yp -= radius * direct.y
if centered[2]:
zp -= radius
zp -= radius * direct.z

return Solid.makeSphere(radius, Vector(xp, yp, zp), direct, angle1, angle2, angle3)

Expand Down

0 comments on commit 6822944

Please sign in to comment.