Fix wedge centering

This commit is contained in:
Adam Urbańczyk
2021-01-31 21:59:43 +01:00
committed by GitHub
parent 94e0976119
commit 8fa1753a62

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)