Commit b9accd9f by mehtank

front, back ports on boat cabin

1 parent 1046e566
......@@ -33,6 +33,11 @@ c.addConstraint(("star","l"), "height")
c.addConnection(("port", "r"), ("top", "l"), angle=90)
c.addConnection(("top", "r"), ("star", "l"), angle=90)
c.addConnection(("port", "t"), ("fore", "l"), angle=90, tabWidth=10)
c.addConnection(("fore", "r"), ("star", "t"), angle=90, tabWidth=10)
c.addConnection(("star", "b"), ("rear", "r"), angle=90, tabWidth=10)
c.addConnection(("rear", "l"), ("port", "b"), angle=90, tabWidth=10)
# Interface to floats
c.addParameter("length", 200)
......@@ -50,5 +55,7 @@ c.addConnection(("starsplit", "topedge1"), ("star", "r"))
c.inheritInterface("portedge", ("portsplit", "botedge0"))
c.inheritInterface("staredge", ("starsplit", "botedge0"))
c.inheritInterface("foreedge", ("fore", "t"))
c.inheritInterface("rearedge", ("rear", "b"))
c.toYaml("library/Cabin.yaml")
......@@ -23,4 +23,7 @@ c.addConstraint(("star","stern"), "length", "x/8.")
c.addConnection(("cabin", "portedge"), ("port", "staredge"))
c.addConnection(("cabin", "staredge"), ("star", "portedge"))
c.inheritInterface("foreedge", ("cabin", "foreedge"))
c.inheritInterface("rearedge", ("cabin", "rearedge"))
c.toYaml("library/Catamaran.yaml")
......@@ -16,15 +16,33 @@ connections:
- [star, l]
- {angle: 90}
connection4:
- [port, t]
- [fore, l]
- {angle: 90, tabWidth: 10}
connection5:
- [fore, r]
- [star, t]
- {angle: 90, tabWidth: 10}
connection6:
- [star, b]
- [rear, r]
- {angle: 90, tabWidth: 10}
connection7:
- [rear, l]
- [port, b]
- {angle: 90, tabWidth: 10}
connection8:
- [portsplit, topedge1]
- [port, l]
- {}
connection5:
connection9:
- [starsplit, topedge1]
- [star, r]
- {}
interfaces:
foreedge: {interface: t, subcomponent: fore}
portedge: {interface: botedge0, subcomponent: portsplit}
rearedge: {interface: b, subcomponent: rear}
staredge: {interface: botedge0, subcomponent: starsplit}
metadata:
depth: {default: 50}
......
......@@ -7,7 +7,9 @@ connections:
- [cabin, staredge]
- [star, portedge]
- {}
interfaces: {}
interfaces:
foreedge: {interface: foreedge, subcomponent: cabin}
rearedge: {interface: rearedge, subcomponent: cabin}
metadata:
depth: {default: 50}
height: {default: 30}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!