SilverwareBox: Fix edge of surrounding wall

and remove bogus arc holes at the corners
This commit is contained in:
Florian Festi 2021-09-21 23:02:47 +02:00
parent f6fa4967ab
commit a2678de3e2
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Silverware(Boxes):
####################################################################
def basePlate(self, x, y, r):
self.roundedPlate(x, y, r, callback=[
self.roundedPlate(x, y, r, extend_corners=False, callback=[
lambda: self.fingerHolesAt(x / 3.0 - r, 0, 0.5 * (y - self.thickness)),
lambda: self.fingerHolesAt(x / 6.0, 0, 0.5 * (y - self.thickness)),
lambda: self.fingerHolesAt(y / 2.0 - r, 0, x),
@ -55,7 +55,7 @@ class Silverware(Boxes):
])
def wall(self, x=100, y=100, h=100, r=0):
self.surroundingWall(x, y, r, h, bottom='h', callback={
self.surroundingWall(x, y, r, h, top="E", bottom='h', callback={
0: lambda: self.fingerHolesAt(x / 6.0, 0, h - 10),
4: lambda: self.fingerHolesAt(x / 3.0 - r, 0, h - 10),
1: lambda: self.fingerHolesAt(y / 2.0 - r, 0, h - 10),