Merge pull request #611 from CadQuery/wedge-fix

Fix wedge centering
This commit is contained in:
Jeremy Wright
2021-01-31 19:51:24 -05:00
committed by GitHub

View File

@ -3529,14 +3529,14 @@ class Workplane(object):
(xp, yp, zp) = (0.0, 0.0, 0.0)
if not centered[0]:
xp += dx / 2.0
if centered[0]:
xp -= dx / 2.0
if not centered[1]:
yp += dy / 2.0
if centered[1]:
yp -= dy / 2.0
if not centered[2]:
zp += dx / 2.0
if centered[2]:
zp -= dx / 2.0
w = Solid.makeWedge(dx, dy, dz, xmin, zmin, xmax, zmax, Vector(xp, yp, zp), dir)