SpicesRack: Fix feet to support first level

This commit is contained in:
Florian Festi 2020-10-13 22:49:19 +02:00
parent 1dd567657e
commit dabab1880f
1 changed files with 14 additions and 1 deletions

View File

@ -81,6 +81,19 @@ class SpicesRack(Boxes):
self.move(tw, th, move)
def foot(self, width, height, move=None):
t = self.thickness
tw, th = height, width + t
if self.move(tw, th, move, True):
return
self.moveTo(0, t)
self.edges["f"](height)
self.polyline(0, 90, width, 90, 0, (90, height), width-height, 90)
self.move(tw, th, move)
def holes(self):
w = 2* self.base_r
r = self.diameter / 2
@ -158,5 +171,5 @@ class SpicesRack(Boxes):
self.support, inner_width, (self.h-t)/2)
if self.feet:
self.partsMatrix(self.numx-1, self.numx-1, "up",
self.rectangularTriangle, (self.h-t)/2, width, "fee", r=(self.h-t)/4)
self.foot, width, (self.h-t)/2)