Skip to content
Snippets Groups Projects
Unverified Commit cea87b38 authored by Jennifer Mankoff's avatar Jennifer Mankoff
Browse files

fixed a bug with too many extra tabs over the slots

parent ef190dbd
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,6 @@ class ShelfInsert(Boxes):
Boxes.__init__(self)
self.addSettingsArgs(OverhangSettings, finger=3.0)
#self.addSettingsArgs(edges.FingerJointSettings, finger=3.0)
self.buildArgParser("sx", "sy", "h", "outside")
@property
......@@ -154,7 +153,8 @@ class ShelfInsert(Boxes):
self.sx = self.adjustSize(self.sx)
self.sy = self.adjustSize(self.sy)
self.h = self.adjustSize(self.h, e2=False)
# add an overhang to the front by changing the x width
x = self.Overhang_front_overhang + sum(self.sx) + self.thickness * (len(self.sx) - 1)
y = sum(self.sy) + self.thickness * (len(self.sy) - 1)
h = self.h
......@@ -168,12 +168,15 @@ class ShelfInsert(Boxes):
######
for i in range(len(self.sy) - 1):
# this is a slotted edge with finger tabs on the slotted side ("f") and flat edges elsewhere ("e")
e = ["e", "e", edges.SlottedEdge(self, self.sx[::-1], "f", slots=0.5 * h), "e"]
self.rectangularWall(x, h, e, move="up", label="x support")
for i in range(len(self.sx) - 1):
# this is a slotted edge opposite the finger tabs (plus a gap where the slot is on the
# tabbed side)
e = [edges.SlottedEdge(self, self.sy, "e", slots=0.5 * h),
"f", "f", "f"]
"e", edges.SlottedEdge(self, self.sy, "f", slots= 0 * h), "e"]
self.rectangularWall(y, h, e, move="up", label="y support")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment