Skip to content
Snippets Groups Projects
Commit e8fb9ab0 authored by mehtank's avatar mehtank
Browse files

Put hinge back in so it angles correctly

parent c5f4a4e0
No related merge requests found
......@@ -17,8 +17,8 @@ class Hinge(FoldedComponent):
self.addEdgeInterface("base", "base.e7", "basewidth")
self.addEdgeInterface("top", "base.e0", "length")
self.addEdgeInterface("bot", "base.e6", "length")
self.addEdgeInterface("hingetop", "base.e5", "topwidth")
self.addEdgeInterface("hingebot", "base.e1", "botwidth")
self.addEdgeInterface("hingetop", "hingetop.e1", "topwidth")
self.addEdgeInterface("hingebot", "hingebot.e1", "botwidth")
def assemble(self):
TOL = 1e-6
......@@ -55,5 +55,8 @@ class Hinge(FoldedComponent):
self.attachEdge("arm.e0", botarm, "e2", prefix="botarm", angle=-90)
self.attachEdge("arm.e2", toparm, "e0", prefix="toparm", angle=-90)
self.attachEdge("base.e5", Rectangle("", TOL, tw), "e3", prefix="hingetop", angle=da)
self.attachEdge("base.e1", Rectangle("", TOL, bw), "e3", prefix="hingebot", angle=da)
if __name__ == "__main__":
Hinge.test()
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment