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