Move lid for Stackable top edge (S) to new Lids class
Now also works for the overthetop style and is adjustable in height
This commit is contained in:
parent
70162bdfb2
commit
5ea8fce6be
|
@ -72,17 +72,21 @@ class Lid:
|
||||||
elif style in ("overthetop", "ontop"):
|
elif style in ("overthetop", "ontop"):
|
||||||
x2 = x
|
x2 = x
|
||||||
y2 = y
|
y2 = y
|
||||||
|
b = {
|
||||||
|
"Š" : "š",
|
||||||
|
"S" : "š",
|
||||||
|
}.get(edge, "e")
|
||||||
if style == "overthetop":
|
if style == "overthetop":
|
||||||
x2 += 2*t + self.play
|
x2 += 2*t + self.play
|
||||||
y2 += 2*t + self.play
|
y2 += 2*t + self.play
|
||||||
self.rectangularWall(x2, y2, "ffff", move="up")
|
self.rectangularWall(x2, y2, "ffff", move="up")
|
||||||
self.rectangularWall(x2, self.height, "eFFF",
|
self.rectangularWall(x2, self.height, b +"FFF",
|
||||||
ignore_widths=[1, 2, 5, 6], move="up")
|
ignore_widths=[1, 2, 5, 6], move="up")
|
||||||
self.rectangularWall(x2, self.height, "eFFF",
|
self.rectangularWall(x2, self.height, b + "FFF",
|
||||||
ignore_widths=[1, 2, 5, 6], move="up")
|
ignore_widths=[1, 2, 5, 6], move="up")
|
||||||
self.rectangularWall(y2, self.height, "efFf",
|
self.rectangularWall(y2, self.height, b + "fFf",
|
||||||
ignore_widths=[1, 2, 5, 6], move="up")
|
ignore_widths=[1, 2, 5, 6], move="up")
|
||||||
self.rectangularWall(y2, self.height, "efFf",
|
self.rectangularWall(y2, self.height, b + "fFf",
|
||||||
ignore_widths=[1, 2, 5, 6], move="up")
|
ignore_widths=[1, 2, 5, 6], move="up")
|
||||||
if style == "ontop":
|
if style == "ontop":
|
||||||
self.rectangularWall(y - self.play, height + 2*t, "eeee",
|
self.rectangularWall(y - self.play, height + 2*t, "eeee",
|
||||||
|
@ -230,12 +234,6 @@ class _TopEdge(Boxes):
|
||||||
self.rectangularWall(lx, y, "IeJe", move="mirror up", label="lid top right")
|
self.rectangularWall(lx, y, "IeJe", move="mirror up", label="lid top right")
|
||||||
self.rectangularWall(lx, y, "IeJe", move="left only", label="invisible")
|
self.rectangularWall(lx, y, "IeJe", move="left only", label="invisible")
|
||||||
self.edges["k"].settings.setValues(self.thickness, outset=outset)
|
self.edges["k"].settings.setValues(self.thickness, outset=outset)
|
||||||
elif top_edge == "S":
|
|
||||||
self.rectangularWall(x, y, "ffff", move="up", label="lid top")
|
|
||||||
self.rectangularWall(x, 0, "sFeF", move="up", label="lid top left")
|
|
||||||
self.rectangularWall(x, 0, "sFeF", move="up", label="lid top right")
|
|
||||||
self.rectangularWall(y, 0, "sfef", move="up", label="lid top front")
|
|
||||||
self.rectangularWall(y, 0, "sfef", move="up", label="lid top back")
|
|
||||||
elif top_edge == "v":
|
elif top_edge == "v":
|
||||||
self.rectangularWall(x, y, "VEEE", move="up", label="lid top")
|
self.rectangularWall(x, y, "VEEE", move="up", label="lid top")
|
||||||
self.edges["v"].parts(move="up")
|
self.edges["v"].parts(move="up")
|
||||||
|
|
Loading…
Reference in New Issue