SlatwallTypeTray: Remove unused code carried over from TypeTray
This commit is contained in:
parent
2b0bdde145
commit
5c0cc4d732
|
@ -93,16 +93,13 @@ class SlatwallTypeTray(_TopEdge):
|
||||||
|
|
||||||
|
|
||||||
# outer walls
|
# outer walls
|
||||||
t1, t2, t3, t4 = "eeee" #self.topEdges(self.top_edge)
|
|
||||||
self.closedtop = False # self.top_edge in "fF"
|
|
||||||
|
|
||||||
# x sides
|
# x sides
|
||||||
|
|
||||||
self.ctx.save()
|
self.ctx.save()
|
||||||
|
|
||||||
# outer walls
|
# outer walls
|
||||||
self.rectangularWall(x, h, [b, "f", t1, "f"], callback=[self.xHoles], move="up")
|
self.rectangularWall(x, h, [b, "f", "e", "f"], callback=[self.xHoles], move="up")
|
||||||
self.rectangularWall(x, h+bh, [b, "C", t3, "c"], callback=[self.mirrorX(self.xHoles, x), ], move="up")
|
self.rectangularWall(x, h+bh, [b, "C", "e", "c"], callback=[self.mirrorX(self.xHoles, x), ], move="up")
|
||||||
|
|
||||||
# floor
|
# floor
|
||||||
if b != "e":
|
if b != "e":
|
||||||
|
@ -116,27 +113,21 @@ class SlatwallTypeTray(_TopEdge):
|
||||||
for i in range(len(self.sy) - 1):
|
for i in range(len(self.sy) - 1):
|
||||||
e = [edges.SlottedEdge(self, self.sx, be), "f",
|
e = [edges.SlottedEdge(self, self.sx, be), "f",
|
||||||
edges.SlottedEdge(self, self.sx[::-1], "e", slots=0.5 * hi), "f"]
|
edges.SlottedEdge(self, self.sx[::-1], "e", slots=0.5 * hi), "f"]
|
||||||
if self.closedtop and sameh:
|
|
||||||
e = [edges.SlottedEdge(self, self.sx, be), "f",
|
|
||||||
edges.SlottedEdge(self, self.sx[::-1], "f", slots=0.5 * hi), "f"]
|
|
||||||
|
|
||||||
self.rectangularWall(x, hi, e, move="up")
|
self.rectangularWall(x, hi, e, move="up")
|
||||||
|
|
||||||
# y walls
|
# y walls
|
||||||
|
|
||||||
# outer walls
|
# outer walls
|
||||||
self.trapezoidSideWall(y, h, h+bh, [b, "B", t2, "h"], radius=self.radius, callback=[self.yHoles, ], move="up")
|
self.trapezoidSideWall(y, h, h+bh, [b, "B", "e", "h"], radius=self.radius, callback=[self.yHoles, ], move="up")
|
||||||
self.moveTo(0, 8)
|
self.moveTo(0, 8)
|
||||||
self.trapezoidSideWall(y, h+bh, h, [b, "h", t4, "b"], radius=self.radius, callback=[self.mirrorX(self.yHoles, y), ], move="up")
|
self.trapezoidSideWall(y, h+bh, h, [b, "h", "e", "b"], radius=self.radius, callback=[self.mirrorX(self.yHoles, y), ], move="up")
|
||||||
self.moveTo(0, 8)
|
self.moveTo(0, 8)
|
||||||
|
|
||||||
# inner walls
|
# inner walls
|
||||||
for i in range(len(self.sx) - 1):
|
for i in range(len(self.sx) - 1):
|
||||||
e = [edges.SlottedEdge(self, self.sy, be, slots=0.5 * hi),
|
e = [edges.SlottedEdge(self, self.sy, be, slots=0.5 * hi),
|
||||||
"f", "e", "f"]
|
"f", "e", "f"]
|
||||||
if self.closedtop and sameh:
|
|
||||||
e = [edges.SlottedEdge(self, self.sy, be, slots=0.5 * hi),"f",
|
|
||||||
edges.SlottedEdge(self, self.sy[::-1], "f"), "f"]
|
|
||||||
self.rectangularWall(y, hi, e, move="up")
|
self.rectangularWall(y, hi, e, move="up")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue