From 682294409145c993118940af05b4656a5a23f915 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Mon, 13 Jul 2015 10:22:26 -0400 Subject: [PATCH] Fixed the centering of a sphere object. --- cadquery/CQ.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cadquery/CQ.py b/cadquery/CQ.py index 44bd0e9..708f6de 100644 --- a/cadquery/CQ.py +++ b/cadquery/CQ.py @@ -2337,11 +2337,11 @@ class Workplane(CQ): (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)