Add edge with two hinges to top edge param and edge descriptions
This commit is contained in:
parent
79b39fa0c0
commit
a032067c5b
|
@ -256,7 +256,7 @@ class Boxes:
|
||||||
elif arg == "top_edge":
|
elif arg == "top_edge":
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--top_edge", action="store",
|
"--top_edge", action="store",
|
||||||
type=ArgparseEdgeType("ecESi"), choices=list("ecESi"),
|
type=ArgparseEdgeType("ecESik"), choices=list("ecESik"),
|
||||||
default="e", help="edge type for top edge")
|
default="e", help="edge type for top edge")
|
||||||
else:
|
else:
|
||||||
raise ValueError("No default for argument", arg)
|
raise ValueError("No default for argument", arg)
|
||||||
|
|
|
@ -19,9 +19,11 @@ import math
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
def getDescriptions():
|
def getDescriptions():
|
||||||
return {edge.char : edge.description for edge in globals().values()
|
d = {edge.char : edge.description for edge in globals().values()
|
||||||
if inspect.isclass(edge) and issubclass(edge, BaseEdge)
|
if inspect.isclass(edge) and issubclass(edge, BaseEdge)
|
||||||
and edge.char}
|
and edge.char}
|
||||||
|
d['k'] = "Straight edge with hinge eye (both ends)"
|
||||||
|
return d
|
||||||
|
|
||||||
class BoltPolicy(object):
|
class BoltPolicy(object):
|
||||||
"""Abstract class
|
"""Abstract class
|
||||||
|
|
Loading…
Reference in New Issue