Add RoundedTriangleEdge to top_edges
This commit is contained in:
parent
31fd0024ee
commit
2747d9719a
|
@ -341,7 +341,7 @@ class Boxes:
|
||||||
if default is None: default = "e"
|
if default is None: default = "e"
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--top_edge", action="store",
|
"--top_edge", action="store",
|
||||||
type=ArgparseEdgeType("efFcESikvfL"), choices=list("efFcESikvfL"),
|
type=ArgparseEdgeType("efFcESikvfLt"), choices=list("efFcESikvfLt"),
|
||||||
default=default, help="edge type for top edge")
|
default=default, help="edge type for top edge")
|
||||||
elif arg == "outside":
|
elif arg == "outside":
|
||||||
if default is None: default = True
|
if default is None: default = True
|
||||||
|
|
|
@ -97,6 +97,7 @@ class _TopEdge(Boxes):
|
||||||
self.addSettingsArgs(edges.CabinetHingeSettings)
|
self.addSettingsArgs(edges.CabinetHingeSettings)
|
||||||
self.addSettingsArgs(edges.LidSettings)
|
self.addSettingsArgs(edges.LidSettings)
|
||||||
self.addSettingsArgs(edges.ClickSettings)
|
self.addSettingsArgs(edges.ClickSettings)
|
||||||
|
self.addSettingsArgs(edges.RoundedTriangleEdgeSettings)
|
||||||
|
|
||||||
def topEdges(self, top_edge):
|
def topEdges(self, top_edge):
|
||||||
t1 = t2 = t3 = t4 = self.edges.get(top_edge, self.edges["e"])
|
t1 = t2 = t3 = t4 = self.edges.get(top_edge, self.edges["e"])
|
||||||
|
@ -112,7 +113,8 @@ class _TopEdge(Boxes):
|
||||||
t3 = "N"
|
t3 = "N"
|
||||||
elif t1.char == "v":
|
elif t1.char == "v":
|
||||||
t2 = t3 = t4 = "e"
|
t2 = t3 = t4 = "e"
|
||||||
|
if t1.char == "t":
|
||||||
|
t1 = t3 = "e"
|
||||||
return [t1, t2, t3, t4]
|
return [t1, t2, t3, t4]
|
||||||
|
|
||||||
def drawLid(self, x, y, top_edge, bedBolts=[None, None]):
|
def drawLid(self, x, y, top_edge, bedBolts=[None, None]):
|
||||||
|
|
Loading…
Reference in New Issue