@things-factory/figure-service 10.1.200 → 10.1.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/service/figure/figure-context.d.ts +1 -1
- package/dist-server/service/figure/figure-context.js +10 -4
- package/dist-server/service/figure/figure-context.js.map +1 -1
- package/dist-server/service/figure/figure-propose-steps.js +3 -3
- package/dist-server/service/figure/figure-propose-steps.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/recipes/_lib/model.mts +4 -4
- package/recipes/air-cylinder/build.mts +2 -2
- package/recipes/air-cylinder/models/default.json +1 -1
- package/recipes/air-cylinder/recipe.json +2 -4
- package/recipes/air-shower/build.mts +2 -2
- package/recipes/air-shower/models/default.json +1 -1
- package/recipes/air-shower/recipe.json +2 -4
- package/recipes/barrier-gate/build.mts +1 -1
- package/recipes/barrier-gate/models/default.json +1 -1
- package/recipes/barrier-gate/recipe.json +1 -2
- package/recipes/base-frame/build.mts +2 -2
- package/recipes/base-frame/models/default.json +1 -1
- package/recipes/base-frame/recipe.json +4 -8
- package/recipes/belt-surface/build.mts +1 -1
- package/recipes/belt-surface/models/default.json +1 -1
- package/recipes/belt-surface/recipe.json +1 -2
- package/recipes/bin-row/build.mts +1 -1
- package/recipes/bin-row/models/default.json +1 -1
- package/recipes/bin-row/recipe.json +1 -2
- package/recipes/bollard-row/build.mts +1 -1
- package/recipes/bollard-row/models/default.json +1 -1
- package/recipes/bollard-row/recipe.json +1 -2
- package/recipes/buzzer/build.mts +1 -1
- package/recipes/buzzer/models/default.json +1 -1
- package/recipes/buzzer/recipe.json +1 -2
- package/recipes/cabinet-doors/build.mts +2 -2
- package/recipes/cabinet-doors/models/default.json +1 -1
- package/recipes/cabinet-doors/models/doors=1.json +1 -1
- package/recipes/cabinet-doors/models/doors=2.json +1 -1
- package/recipes/cabinet-doors/recipe.json +2 -4
- package/recipes/cable-tray/build.mts +2 -2
- package/recipes/cable-tray/models/default.json +1 -1
- package/recipes/cable-tray/recipe.json +3 -6
- package/recipes/camera-mount/build.mts +2 -2
- package/recipes/camera-mount/models/default.json +1 -1
- package/recipes/camera-mount/recipe.json +2 -4
- package/recipes/canopy/build.mts +2 -2
- package/recipes/canopy/models/default.json +1 -1
- package/recipes/canopy/recipe.json +5 -10
- package/recipes/cart/build.mts +5 -5
- package/recipes/cart/models/default.json +1 -1
- package/recipes/cart/recipe.json +16 -36
- package/recipes/cart-handle/build.mts +2 -2
- package/recipes/cart-handle/models/default.json +1 -1
- package/recipes/cart-handle/recipe.json +3 -6
- package/recipes/casters-four/build.mts +2 -2
- package/recipes/casters-four/models/default.json +1 -1
- package/recipes/casters-four/recipe.json +12 -28
- package/recipes/ceiling-rail-carriage/build.mts +2 -2
- package/recipes/ceiling-rail-carriage/models/default.json +1 -1
- package/recipes/ceiling-rail-carriage/recipe.json +2 -4
- package/recipes/chain-rails/build.mts +2 -2
- package/recipes/chain-rails/models/default.json +1 -1
- package/recipes/chain-rails/recipe.json +2 -4
- package/recipes/charging-station/build.mts +2 -2
- package/recipes/charging-station/models/default.json +1 -1
- package/recipes/charging-station/recipe.json +2 -4
- package/recipes/column-row/build.mts +1 -1
- package/recipes/column-row/models/default.json +1 -1
- package/recipes/column-row/recipe.json +1 -2
- package/recipes/control-cabinet/build.mts +2 -2
- package/recipes/control-cabinet/models/default.json +1 -1
- package/recipes/control-cabinet/recipe.json +2 -4
- package/recipes/conveyor-skirts/build.mts +2 -2
- package/recipes/conveyor-skirts/models/default.json +1 -1
- package/recipes/conveyor-skirts/recipe.json +2 -4
- package/recipes/counter-display/build.mts +2 -2
- package/recipes/counter-display/models/default.json +1 -1
- package/recipes/counter-display/recipe.json +2 -4
- package/recipes/dock-bumpers/build.mts +1 -1
- package/recipes/dock-bumpers/models/default.json +1 -1
- package/recipes/dock-bumpers/recipe.json +2 -4
- package/recipes/dock-leveler/build.mts +1 -1
- package/recipes/dock-leveler/models/default.json +1 -1
- package/recipes/dock-leveler/recipe.json +1 -2
- package/recipes/double-hinged-door/build.mts +2 -2
- package/recipes/double-hinged-door/models/default.json +1 -1
- package/recipes/double-hinged-door/recipe.json +3 -6
- package/recipes/drawer-stack/build.mts +1 -1
- package/recipes/drawer-stack/models/default.json +1 -1
- package/recipes/drawer-stack/models/drawers=2.json +1 -1
- package/recipes/drawer-stack/models/drawers=3.json +1 -1
- package/recipes/drawer-stack/models/drawers=4.json +1 -1
- package/recipes/drawer-stack/recipe.json +9 -18
- package/recipes/drip-tray/build.mts +1 -1
- package/recipes/drip-tray/models/default.json +1 -1
- package/recipes/drip-tray/recipe.json +1 -2
- package/recipes/duct-fan/build.mts +2 -2
- package/recipes/duct-fan/models/default.json +1 -1
- package/recipes/duct-fan/recipe.json +2 -4
- package/recipes/emergency-stop/build.mts +2 -2
- package/recipes/emergency-stop/models/default.json +1 -1
- package/recipes/emergency-stop/recipe.json +2 -4
- package/recipes/end-covers/build.mts +2 -2
- package/recipes/end-covers/models/default.json +1 -1
- package/recipes/end-covers/recipe.json +2 -4
- package/recipes/ffu-row/build.mts +1 -1
- package/recipes/ffu-row/models/default.json +1 -1
- package/recipes/ffu-row/recipe.json +1 -2
- package/recipes/fire-extinguisher/build.mts +2 -2
- package/recipes/fire-extinguisher/models/default.json +1 -1
- package/recipes/fire-extinguisher/recipe.json +2 -4
- package/recipes/first-aid-box/build.mts +2 -2
- package/recipes/first-aid-box/models/default.json +1 -1
- package/recipes/first-aid-box/recipe.json +2 -4
- package/recipes/floor-zone/build.mts +2 -2
- package/recipes/floor-zone/models/default.json +1 -1
- package/recipes/floor-zone/recipe.json +4 -8
- package/recipes/folding-door/build.mts +3 -3
- package/recipes/folding-door/models/default.json +1 -1
- package/recipes/folding-door/recipe.json +3 -6
- package/recipes/fork/build.mts +1 -1
- package/recipes/fork/models/default.json +1 -1
- package/recipes/fork/recipe.json +2 -4
- package/recipes/gantry-frame/build.mts +2 -2
- package/recipes/gantry-frame/models/default.json +1 -1
- package/recipes/gantry-frame/recipe.json +3 -6
- package/recipes/gripper-2f/build.mts +2 -2
- package/recipes/gripper-2f/models/default.json +1 -1
- package/recipes/gripper-2f/recipe.json +3 -6
- package/recipes/guard-cover/build.mts +1 -1
- package/recipes/guard-cover/models/default.json +1 -1
- package/recipes/guard-cover/recipe.json +1 -2
- package/recipes/handrail/build.mts +2 -2
- package/recipes/handrail/models/default.json +1 -1
- package/recipes/handrail/recipe.json +2 -4
- package/recipes/hatch/build.mts +2 -2
- package/recipes/hatch/models/default.json +1 -1
- package/recipes/hatch/recipe.json +2 -4
- package/recipes/hinged-door/build.mts +2 -2
- package/recipes/hinged-door/models/default.json +1 -1
- package/recipes/hinged-door/models/hinge=left.json +1 -1
- package/recipes/hinged-door/models/hinge=right.json +1 -1
- package/recipes/hinged-door/recipe.json +3 -6
- package/recipes/hmi-monitor/build.mts +2 -2
- package/recipes/hmi-monitor/models/default.json +1 -1
- package/recipes/hmi-monitor/recipe.json +2 -4
- package/recipes/hopper/build.mts +2 -2
- package/recipes/hopper/models/default.json +1 -1
- package/recipes/hopper/recipe.json +2 -4
- package/recipes/interlock-switch/build.mts +1 -1
- package/recipes/interlock-switch/models/default.json +1 -1
- package/recipes/interlock-switch/recipe.json +1 -2
- package/recipes/junction-box/build.mts +1 -1
- package/recipes/junction-box/models/default.json +1 -1
- package/recipes/junction-box/recipe.json +1 -2
- package/recipes/ladder/build.mts +2 -2
- package/recipes/ladder/models/default.json +1 -1
- package/recipes/ladder/recipe.json +3 -6
- package/recipes/legs-four/build.mts +1 -1
- package/recipes/legs-four/models/default.json +1 -1
- package/recipes/legs-four/recipe.json +4 -8
- package/recipes/leveling-feet/build.mts +1 -1
- package/recipes/leveling-feet/models/default.json +1 -1
- package/recipes/leveling-feet/recipe.json +4 -8
- package/recipes/lift-updown/build.mts +1 -1
- package/recipes/lift-updown/models/default.json +1 -1
- package/recipes/lift-updown/recipe.json +1 -2
- package/recipes/light-curtain/build.mts +1 -1
- package/recipes/light-curtain/models/default.json +1 -1
- package/recipes/light-curtain/recipe.json +2 -4
- package/recipes/limit-switch/build.mts +2 -2
- package/recipes/limit-switch/models/default.json +1 -1
- package/recipes/limit-switch/recipe.json +2 -4
- package/recipes/linear-guide/build.mts +2 -2
- package/recipes/linear-guide/models/default.json +1 -1
- package/recipes/linear-guide/recipe.json +2 -4
- package/recipes/locker-row/build.mts +1 -1
- package/recipes/locker-row/models/default.json +1 -1
- package/recipes/locker-row/recipe.json +1 -2
- package/recipes/motor-box/build.mts +1 -1
- package/recipes/motor-box/models/default.json +1 -1
- package/recipes/motor-box/recipe.json +1 -2
- package/recipes/observation-window/build.mts +2 -2
- package/recipes/observation-window/models/default.json +1 -1
- package/recipes/observation-window/recipe.json +2 -4
- package/recipes/operator-panel/build.mts +2 -2
- package/recipes/operator-panel/models/buttons=2.json +1 -1
- package/recipes/operator-panel/models/buttons=3.json +1 -1
- package/recipes/operator-panel/models/buttons=4.json +1 -1
- package/recipes/operator-panel/models/buttons=5.json +1 -1
- package/recipes/operator-panel/models/default.json +1 -1
- package/recipes/operator-panel/recipe.json +5 -10
- package/recipes/pallet/build.mts +2 -2
- package/recipes/pallet/models/default.json +1 -1
- package/recipes/pallet/recipe.json +4 -8
- package/recipes/partition-wall/build.mts +2 -2
- package/recipes/partition-wall/models/default.json +1 -1
- package/recipes/partition-wall/recipe.json +3 -6
- package/recipes/pass-box/build.mts +2 -2
- package/recipes/pass-box/models/default.json +1 -1
- package/recipes/pass-box/recipe.json +2 -4
- package/recipes/peg-board/build.mts +2 -2
- package/recipes/peg-board/models/default.json +1 -1
- package/recipes/peg-board/recipe.json +2 -4
- package/recipes/photo-sensor-pair/build.mts +1 -1
- package/recipes/photo-sensor-pair/models/default.json +1 -1
- package/recipes/photo-sensor-pair/recipe.json +2 -4
- package/recipes/pipe-run/build.mts +1 -1
- package/recipes/pipe-run/models/default.json +1 -1
- package/recipes/pipe-run/recipe.json +4 -7
- package/recipes/platform/build.mts +2 -2
- package/recipes/platform/models/default.json +1 -1
- package/recipes/platform/recipe.json +5 -10
- package/recipes/power-box/build.mts +1 -1
- package/recipes/power-box/models/default.json +1 -1
- package/recipes/power-box/recipe.json +1 -2
- package/recipes/pressure-gauge/build.mts +1 -1
- package/recipes/pressure-gauge/models/default.json +1 -1
- package/recipes/pressure-gauge/recipe.json +1 -2
- package/recipes/pull-cord/build.mts +1 -1
- package/recipes/pull-cord/models/default.json +1 -1
- package/recipes/pull-cord/recipe.json +1 -2
- package/recipes/pump/build.mts +2 -2
- package/recipes/pump/models/default.json +1 -1
- package/recipes/pump/recipe.json +2 -4
- package/recipes/pusher/build.mts +1 -1
- package/recipes/pusher/models/default.json +1 -1
- package/recipes/pusher/recipe.json +1 -2
- package/recipes/robot-plinth/build.mts +2 -2
- package/recipes/robot-plinth/models/default.json +1 -1
- package/recipes/robot-plinth/recipe.json +2 -4
- package/recipes/roll-up-shutter/build.mts +2 -2
- package/recipes/roll-up-shutter/models/default.json +1 -1
- package/recipes/roll-up-shutter/recipe.json +2 -4
- package/recipes/roller-row/build.mts +1 -1
- package/recipes/roller-row/models/default.json +1 -1
- package/recipes/roller-row/recipe.json +5 -7
- package/recipes/room-shell/build.mts +3 -3
- package/recipes/room-shell/models/default.json +1 -1
- package/recipes/room-shell/recipe.json +5 -10
- package/recipes/rotating-beacon/build.mts +3 -3
- package/recipes/rotating-beacon/models/default.json +1 -1
- package/recipes/rotating-beacon/recipe.json +3 -6
- package/recipes/safety-fence/build.mts +2 -2
- package/recipes/safety-fence/models/default.json +1 -1
- package/recipes/safety-fence/recipe.json +2 -4
- package/recipes/safety-mat/build.mts +1 -1
- package/recipes/safety-mat/models/default.json +1 -1
- package/recipes/safety-mat/recipe.json +1 -2
- package/recipes/safety-sign-stand/build.mts +3 -3
- package/recipes/safety-sign-stand/models/default.json +1 -1
- package/recipes/safety-sign-stand/recipe.json +3 -6
- package/recipes/scanner-mount/build.mts +3 -3
- package/recipes/scanner-mount/models/default.json +1 -1
- package/recipes/scanner-mount/recipe.json +3 -6
- package/recipes/selector-switch/build.mts +2 -2
- package/recipes/selector-switch/models/default.json +1 -1
- package/recipes/selector-switch/recipe.json +2 -4
- package/recipes/shelf-tiers/build.mts +1 -1
- package/recipes/shelf-tiers/models/default.json +1 -1
- package/recipes/shelf-tiers/models/tiers=2.json +1 -1
- package/recipes/shelf-tiers/models/tiers=3.json +1 -1
- package/recipes/shelf-tiers/models/tiers=4.json +1 -1
- package/recipes/shelf-tiers/models/tiers=5.json +1 -1
- package/recipes/shelf-tiers/recipe.json +4 -8
- package/recipes/side-guides/build.mts +1 -1
- package/recipes/side-guides/models/default.json +1 -1
- package/recipes/side-guides/recipe.json +2 -4
- package/recipes/sign-board/build.mts +1 -1
- package/recipes/sign-board/models/default.json +1 -1
- package/recipes/sign-board/recipe.json +1 -2
- package/recipes/signal-tower-3/build.mts +2 -2
- package/recipes/signal-tower-3/models/default.json +1 -1
- package/recipes/signal-tower-3/recipe.json +4 -8
- package/recipes/sliding-door/build.mts +4 -4
- package/recipes/sliding-door/models/default.json +1 -1
- package/recipes/sliding-door/models/leaves=1,lamp=false.json +1 -1
- package/recipes/sliding-door/models/leaves=1,lamp=true.json +1 -1
- package/recipes/sliding-door/models/leaves=2,lamp=false.json +1 -1
- package/recipes/sliding-door/models/leaves=2,lamp=true.json +1 -1
- package/recipes/sliding-door/recipe.json +5 -10
- package/recipes/stairs/build.mts +1 -1
- package/recipes/stairs/models/default.json +1 -1
- package/recipes/stairs/recipe.json +1 -2
- package/recipes/status-lamp/build.mts +3 -3
- package/recipes/status-lamp/models/default.json +1 -1
- package/recipes/status-lamp/recipe.json +3 -6
- package/recipes/stopper/build.mts +1 -1
- package/recipes/stopper/models/default.json +1 -1
- package/recipes/stopper/recipe.json +1 -2
- package/recipes/suction-pads/build.mts +1 -1
- package/recipes/suction-pads/models/default.json +1 -1
- package/recipes/suction-pads/recipe.json +1 -2
- package/recipes/tank/build.mts +1 -1
- package/recipes/tank/models/default.json +1 -1
- package/recipes/tank/recipe.json +1 -2
- package/recipes/telescopic-arm/build.mts +2 -2
- package/recipes/telescopic-arm/models/default.json +1 -1
- package/recipes/telescopic-arm/recipe.json +2 -4
- package/recipes/toe-board/build.mts +1 -1
- package/recipes/toe-board/models/default.json +1 -1
- package/recipes/toe-board/recipe.json +1 -2
- package/recipes/tote/build.mts +1 -1
- package/recipes/tote/models/default.json +1 -1
- package/recipes/tote/recipe.json +1 -2
- package/recipes/traffic-cones/build.mts +2 -2
- package/recipes/traffic-cones/models/default.json +1 -1
- package/recipes/traffic-cones/recipe.json +2 -4
- package/recipes/transfer-belts/build.mts +1 -1
- package/recipes/transfer-belts/models/default.json +1 -1
- package/recipes/transfer-belts/recipe.json +2 -4
- package/recipes/tray-stack/build.mts +1 -1
- package/recipes/tray-stack/models/default.json +1 -1
- package/recipes/tray-stack/models/trays=3.json +1 -1
- package/recipes/tray-stack/models/trays=4.json +1 -1
- package/recipes/tray-stack/models/trays=5.json +1 -1
- package/recipes/tray-stack/recipe.json +5 -10
- package/recipes/trough/build.mts +1 -1
- package/recipes/trough/models/default.json +1 -1
- package/recipes/trough/recipe.json +1 -2
- package/recipes/turntable/build.mts +2 -2
- package/recipes/turntable/models/default.json +1 -1
- package/recipes/turntable/recipe.json +2 -4
- package/recipes/valve-handle/build.mts +3 -3
- package/recipes/valve-handle/models/default.json +1 -1
- package/recipes/valve-handle/recipe.json +3 -6
- package/recipes/waste-bin/build.mts +1 -1
- package/recipes/waste-bin/models/default.json +1 -1
- package/recipes/waste-bin/recipe.json +1 -2
- package/recipes/work-light/build.mts +3 -3
- package/recipes/work-light/models/default.json +1 -1
- package/recipes/work-light/recipe.json +3 -6
- package/recipes/workbench-top/build.mts +1 -1
- package/recipes/workbench-top/models/default.json +1 -1
- package/recipes/workbench-top/recipe.json +1 -2
- package/server/service/figure/figure-category-db.test.ts +1 -1
- package/server/service/figure/figure-context.test.ts +6 -6
- package/server/service/figure/figure-context.ts +11 -4
- package/server/service/figure/figure-deprecation-db.test.ts +1 -1
- package/server/service/figure/figure-format.test.ts +3 -3
- package/server/service/figure/figure-llm-smoke.test.ts +2 -2
- package/server/service/figure/figure-namespace-db.test.ts +1 -1
- package/server/service/figure/figure-propose-clips.test.ts +1 -1
- package/server/service/figure/figure-propose-steps.test.ts +5 -5
- package/server/service/figure/figure-propose-steps.ts +3 -3
- package/server/service/figure/figure-public-db.test.ts +1 -1
- package/server/service/figure/figure-release-check.test.ts +1 -1
- package/server/service/figure/figure-release-record-db.test.ts +1 -1
- package/server/service/figure/figure-tools.test.ts +2 -2
|
@@ -114,8 +114,7 @@
|
|
|
114
114
|
"face": "top"
|
|
115
115
|
},
|
|
116
116
|
"body1": {
|
|
117
|
-
"part": "{id}-floor"
|
|
118
|
-
"face": "bottom"
|
|
117
|
+
"part": "{id}-floor"
|
|
119
118
|
},
|
|
120
119
|
"origin": {
|
|
121
120
|
"align": {
|
|
@@ -134,8 +133,7 @@
|
|
|
134
133
|
"face": "top"
|
|
135
134
|
},
|
|
136
135
|
"body1": {
|
|
137
|
-
"part": "{id}-lip-back"
|
|
138
|
-
"face": "bottom"
|
|
136
|
+
"part": "{id}-lip-back"
|
|
139
137
|
},
|
|
140
138
|
"origin": {
|
|
141
139
|
"align": {
|
|
@@ -154,8 +152,7 @@
|
|
|
154
152
|
"face": "top"
|
|
155
153
|
},
|
|
156
154
|
"body1": {
|
|
157
|
-
"part": "{id}-lip-front"
|
|
158
|
-
"face": "bottom"
|
|
155
|
+
"part": "{id}-lip-front"
|
|
159
156
|
},
|
|
160
157
|
"origin": {
|
|
161
158
|
"align": {
|
|
@@ -3,8 +3,8 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
3
3
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 1600, y: 1400, z: 1000 }, 'TPL_CAMERA_MOUNT'))
|
|
6
|
-
m.box('post', 40, 400, 40).on('post', '
|
|
7
|
-
.box('camera', 180, 90, 90).on('camera', '
|
|
6
|
+
m.box('post', 40, 400, 40).on('post', 'host', 'top', { x: 'min', z: 'max' }).colour('post', 'leg', '#7d8790')
|
|
7
|
+
.box('camera', 180, 90, 90).on('camera', 'post', 'top').colour('camera', 'white', '#ffffff')
|
|
8
8
|
.moves('camera', { type: 'revolute', axis: 'Y', lower: -90, upper: 90, state: 'pan' })
|
|
9
9
|
return m.asset
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_CAMERA_MOUNT","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"pan","unit":"deg","min":-90,"max":90,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_CAMERA_MOUNT","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"camera.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"pan","unit":"deg","min":-90,"max":90,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"post.k.centre","unit":"ratio","value":-0.5},{"id":"camera.k.centre","unit":"ratio","value":-0.5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"axis.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"post.shape","op":"extrude@1","args":["post.start.value","post.dimension.height","post.dimension.width","post.dimension.depth"],"outputs":{"shape":"post.shapeValue"},"params":{"frame":"post.local","axis":"y","section":"rectangle"}},{"id":"post.pose","op":"rigid@1","args":["post.on.host.pose.x.t0.value","post.on.host.pose.y.t0.value","post.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post.poseValue"},"params":{"from":"post.local","to":"post.seat"}},{"id":"post","op":"place@1","args":["post.shapeValue","post.world.value"],"outputs":{"placed":"post.placed"}},{"id":"post.start","op":"mul@1","args":["post.dimension.height","post.k.centre"],"outputs":{"value":"post.start.value"}},{"id":"camera.shape","op":"extrude@1","args":["camera.start.value","camera.dimension.height","camera.dimension.width","camera.dimension.depth"],"outputs":{"shape":"camera.shapeValue"},"params":{"frame":"camera.local","axis":"y","section":"rectangle"}},{"id":"camera.pose","op":"rigid@1","args":["d.mm.0","camera.on.post.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"camera.poseValue"},"params":{"from":"camera.local","to":"camera.seat"}},{"id":"camera","op":"place@1","args":["camera.shapeValue","camera.world.value"],"outputs":{"placed":"camera.placed"}},{"id":"camera.start","op":"mul@1","args":["camera.dimension.height","camera.k.centre"],"outputs":{"value":"camera.start.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"post.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"post.on.host.seat.x.t0.value"}},{"id":"post.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post.on.host.seat.y.t0.value"}},{"id":"post.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"post.on.host.seat.z.t0.value"}},{"id":"post.on.host.pose.x.t0","op":"mul@1","args":["post.dimension.width","k.ratio.0_5"],"outputs":{"value":"post.on.host.pose.x.t0.value"}},{"id":"post.on.host.pose.y.t0","op":"mul@1","args":["post.dimension.height","k.ratio.0_5"],"outputs":{"value":"post.on.host.pose.y.t0.value"}},{"id":"post.on.host.pose.z.t0","op":"mul@1","args":["post.dimension.depth","host.k.centre"],"outputs":{"value":"post.on.host.pose.z.t0.value"}},{"id":"post.seat.rigid","op":"rigid@1","args":["post.on.host.seat.x.t0.value","post.on.host.seat.y.t0.value","post.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post.seat.value"},"params":{"from":"post.seat","to":"host.local"}},{"id":"post.chain","op":"compose@1","args":["post.seat.value","post.poseValue"],"outputs":{"pose":"post.chain.value"}},{"id":"post.world","op":"compose@1","args":["host.chain.value","post.chain.value"],"outputs":{"pose":"post.world.value"}},{"id":"camera.on.post.seat.y.t0","op":"mul@1","args":["post.dimension.height","k.ratio.0_5"],"outputs":{"value":"camera.on.post.seat.y.t0.value"}},{"id":"camera.on.post.pose.y.t0","op":"mul@1","args":["camera.dimension.height","k.ratio.0_5"],"outputs":{"value":"camera.on.post.pose.y.t0.value"}},{"id":"camera.seat.rigid","op":"rigid@1","args":["d.mm.0","camera.on.post.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"camera.seat.value"},"params":{"from":"camera.joint","to":"post.local"}},{"id":"camera.chain","op":"compose@1","args":["camera.seat.value","camera.turned.value"],"outputs":{"pose":"camera.chain.value"}},{"id":"camera.world","op":"compose@1","args":["post.world.value","camera.chain.value"],"outputs":{"pose":"camera.world.value"}},{"id":"camera.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.1","axis.ratio.0","pan"],"outputs":{"pose":"camera.motion.value"},"params":{"from":"camera.seat","to":"camera.joint"}},{"id":"camera.turned","op":"compose@1","args":["camera.motion.value","camera.poseValue"],"outputs":{"pose":"camera.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"post.dimension.width":40,"post.dimension.height":400,"post.dimension.depth":40,"camera.dimension.width":180,"camera.dimension.height":90,"camera.dimension.depth":90},"stateDefaults":{"pan":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-7d8790":"#7d8790","palette.tpl-ffffff":"#ffffff"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"post","material":{"token":"palette.tpl-7d8790"}},{"target":"camera","material":{"token":"palette.tpl-ffffff"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"post","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post"},"origin":{"align":{"x":"min","z":"max"}}},{"id":"camera","type":"revolute","body0":{"part":"post","face":"top"},"body1":{"part":"camera"},"origin":{},"axis":"Y","lowerLimit":-90,"upperLimit":90,"state":{"id":"pan"}}]}
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "top"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-post"
|
|
55
|
-
"face": "bottom"
|
|
54
|
+
"part": "{id}-post"
|
|
56
55
|
},
|
|
57
56
|
"origin": {
|
|
58
57
|
"align": {
|
|
@@ -72,8 +71,7 @@
|
|
|
72
71
|
"face": "top"
|
|
73
72
|
},
|
|
74
73
|
"body1": {
|
|
75
|
-
"part": "{id}-camera"
|
|
76
|
-
"face": "bottom"
|
|
74
|
+
"part": "{id}-camera"
|
|
77
75
|
},
|
|
78
76
|
"origin": {},
|
|
79
77
|
"axis": "Y",
|
package/recipes/canopy/build.mts
CHANGED
|
@@ -6,12 +6,12 @@ export default function build() {
|
|
|
6
6
|
const corners = [['post-1', 'min', 'min'], ['post-2', 'min', 'max'], ['post-3', 'max', 'min'], ['post-4', 'max', 'max']] as const
|
|
7
7
|
for (const [post, x, z] of corners)
|
|
8
8
|
m.box(post, 100, 2500, 100)
|
|
9
|
-
.on(post, '
|
|
9
|
+
.on(post, 'host', 'top', { x, z })
|
|
10
10
|
.colour(post, 'palette.column', '#b8bfc6')
|
|
11
11
|
m.box('roof', 6000, 60, 4000)
|
|
12
12
|
.follow('roof', 'x', 'host', 'x')
|
|
13
13
|
.follow('roof', 'z', 'host', 'z')
|
|
14
|
-
.on('roof', '
|
|
14
|
+
.on('roof', 'host', 'top', undefined, 2500)
|
|
15
15
|
.colour('roof', 'palette.roof', '#6c7a89')
|
|
16
16
|
return m.asset
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_CANOPY","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"roof.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"post-1.k.centre","unit":"ratio","value":-0.5},{"id":"post-2.k.centre","unit":"ratio","value":-0.5},{"id":"post-3.k.centre","unit":"ratio","value":-0.5},{"id":"post-4.k.centre","unit":"ratio","value":-0.5},{"id":"roof.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"d.mm.2500","unit":"mm","value":2500}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"post-1.shape","op":"extrude@1","args":["post-1.start.value","post-1.dimension.height","post-1.dimension.width","post-1.dimension.depth"],"outputs":{"shape":"post-1.shapeValue"},"params":{"frame":"post-1.local","axis":"y","section":"rectangle"}},{"id":"post-1.pose","op":"rigid@1","args":["post-1.on.host.own-edge.x.0.times.value","post-1.on.host.along.y.1.sum.value","post-1.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-1.poseValue"},"params":{"from":"post-1.local","to":"post-1.seat"}},{"id":"post-1","op":"place@1","args":["post-1.shapeValue","post-1.world.value"],"outputs":{"placed":"post-1.placed"}},{"id":"post-1.start","op":"mul@1","args":["post-1.dimension.height","post-1.k.centre"],"outputs":{"value":"post-1.start.value"}},{"id":"post-2.shape","op":"extrude@1","args":["post-2.start.value","post-2.dimension.height","post-2.dimension.width","post-2.dimension.depth"],"outputs":{"shape":"post-2.shapeValue"},"params":{"frame":"post-2.local","axis":"y","section":"rectangle"}},{"id":"post-2.pose","op":"rigid@1","args":["post-2.on.host.own-edge.x.0.times.value","post-2.on.host.along.y.1.sum.value","post-2.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-2.poseValue"},"params":{"from":"post-2.local","to":"post-2.seat"}},{"id":"post-2","op":"place@1","args":["post-2.shapeValue","post-2.world.value"],"outputs":{"placed":"post-2.placed"}},{"id":"post-2.start","op":"mul@1","args":["post-2.dimension.height","post-2.k.centre"],"outputs":{"value":"post-2.start.value"}},{"id":"post-3.shape","op":"extrude@1","args":["post-3.start.value","post-3.dimension.height","post-3.dimension.width","post-3.dimension.depth"],"outputs":{"shape":"post-3.shapeValue"},"params":{"frame":"post-3.local","axis":"y","section":"rectangle"}},{"id":"post-3.pose","op":"rigid@1","args":["post-3.on.host.own-edge.x.0.times.value","post-3.on.host.along.y.1.sum.value","post-3.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-3.poseValue"},"params":{"from":"post-3.local","to":"post-3.seat"}},{"id":"post-3","op":"place@1","args":["post-3.shapeValue","post-3.world.value"],"outputs":{"placed":"post-3.placed"}},{"id":"post-3.start","op":"mul@1","args":["post-3.dimension.height","post-3.k.centre"],"outputs":{"value":"post-3.start.value"}},{"id":"post-4.shape","op":"extrude@1","args":["post-4.start.value","post-4.dimension.height","post-4.dimension.width","post-4.dimension.depth"],"outputs":{"shape":"post-4.shapeValue"},"params":{"frame":"post-4.local","axis":"y","section":"rectangle"}},{"id":"post-4.pose","op":"rigid@1","args":["post-4.on.host.own-edge.x.0.times.value","post-4.on.host.along.y.1.sum.value","post-4.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-4.poseValue"},"params":{"from":"post-4.local","to":"post-4.seat"}},{"id":"post-4","op":"place@1","args":["post-4.shapeValue","post-4.world.value"],"outputs":{"placed":"post-4.placed"}},{"id":"post-4.start","op":"mul@1","args":["post-4.dimension.height","post-4.k.centre"],"outputs":{"value":"post-4.start.value"}},{"id":"roof.shape","op":"extrude@1","args":["roof.start.value","roof.dimension.height","roof.dimension.x.value","roof.dimension.z.value"],"outputs":{"shape":"roof.shapeValue"},"params":{"frame":"roof.local","axis":"y","section":"rectangle"}},{"id":"roof.pose","op":"rigid@1","args":["d.mm.0","roof.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"roof.poseValue"},"params":{"from":"roof.local","to":"roof.seat"}},{"id":"roof","op":"place@1","args":["roof.shapeValue","roof.world.value"],"outputs":{"placed":"roof.placed"}},{"id":"roof.start","op":"mul@1","args":["roof.dimension.height","roof.k.centre"],"outputs":{"value":"roof.start.value"}},{"id":"roof.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"roof.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"roof.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"roof.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"post-1.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.seat.y.0.times.value"}},{"id":"post-1.on.host.along.y.0.times","op":"mul@1","args":["post-1.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.along.y.0.times.value"}},{"id":"post-1.on.host.along.y.1.sum","op":"add@1","args":["post-1.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"post-1.on.host.along.y.1.sum.value"}},{"id":"post-1.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"post-1.on.host.edge.x.0.times.value"}},{"id":"post-1.on.host.own-edge.x.0.times","op":"mul@1","args":["post-1.dimension.width","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.own-edge.x.0.times.value"}},{"id":"post-1.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"post-1.on.host.edge.z.0.times.value"}},{"id":"post-1.on.host.own-edge.z.0.times","op":"mul@1","args":["post-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.own-edge.z.0.times.value"}},{"id":"post-1.seat.rigid","op":"rigid@1","args":["post-1.on.host.edge.x.0.times.value","post-1.on.host.seat.y.0.times.value","post-1.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-1.seat.value"},"params":{"from":"post-1.seat","to":"host.local"}},{"id":"post-1.chain","op":"compose@1","args":["post-1.seat.value","post-1.poseValue"],"outputs":{"pose":"post-1.chain.value"}},{"id":"post-1.world","op":"compose@1","args":["host.chain.value","post-1.chain.value"],"outputs":{"pose":"post-1.world.value"}},{"id":"post-2.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.seat.y.0.times.value"}},{"id":"post-2.on.host.along.y.0.times","op":"mul@1","args":["post-2.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.along.y.0.times.value"}},{"id":"post-2.on.host.along.y.1.sum","op":"add@1","args":["post-2.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"post-2.on.host.along.y.1.sum.value"}},{"id":"post-2.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"post-2.on.host.edge.x.0.times.value"}},{"id":"post-2.on.host.own-edge.x.0.times","op":"mul@1","args":["post-2.dimension.width","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.own-edge.x.0.times.value"}},{"id":"post-2.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.edge.z.0.times.value"}},{"id":"post-2.on.host.own-edge.z.0.times","op":"mul@1","args":["post-2.dimension.depth","host.k.centre"],"outputs":{"value":"post-2.on.host.own-edge.z.0.times.value"}},{"id":"post-2.seat.rigid","op":"rigid@1","args":["post-2.on.host.edge.x.0.times.value","post-2.on.host.seat.y.0.times.value","post-2.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-2.seat.value"},"params":{"from":"post-2.seat","to":"host.local"}},{"id":"post-2.chain","op":"compose@1","args":["post-2.seat.value","post-2.poseValue"],"outputs":{"pose":"post-2.chain.value"}},{"id":"post-2.world","op":"compose@1","args":["host.chain.value","post-2.chain.value"],"outputs":{"pose":"post-2.world.value"}},{"id":"post-3.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.seat.y.0.times.value"}},{"id":"post-3.on.host.along.y.0.times","op":"mul@1","args":["post-3.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.along.y.0.times.value"}},{"id":"post-3.on.host.along.y.1.sum","op":"add@1","args":["post-3.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"post-3.on.host.along.y.1.sum.value"}},{"id":"post-3.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.edge.x.0.times.value"}},{"id":"post-3.on.host.own-edge.x.0.times","op":"mul@1","args":["post-3.dimension.width","host.k.centre"],"outputs":{"value":"post-3.on.host.own-edge.x.0.times.value"}},{"id":"post-3.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"post-3.on.host.edge.z.0.times.value"}},{"id":"post-3.on.host.own-edge.z.0.times","op":"mul@1","args":["post-3.dimension.depth","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.own-edge.z.0.times.value"}},{"id":"post-3.seat.rigid","op":"rigid@1","args":["post-3.on.host.edge.x.0.times.value","post-3.on.host.seat.y.0.times.value","post-3.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-3.seat.value"},"params":{"from":"post-3.seat","to":"host.local"}},{"id":"post-3.chain","op":"compose@1","args":["post-3.seat.value","post-3.poseValue"],"outputs":{"pose":"post-3.chain.value"}},{"id":"post-3.world","op":"compose@1","args":["host.chain.value","post-3.chain.value"],"outputs":{"pose":"post-3.world.value"}},{"id":"post-4.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.seat.y.0.times.value"}},{"id":"post-4.on.host.along.y.0.times","op":"mul@1","args":["post-4.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.along.y.0.times.value"}},{"id":"post-4.on.host.along.y.1.sum","op":"add@1","args":["post-4.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"post-4.on.host.along.y.1.sum.value"}},{"id":"post-4.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.edge.x.0.times.value"}},{"id":"post-4.on.host.own-edge.x.0.times","op":"mul@1","args":["post-4.dimension.width","host.k.centre"],"outputs":{"value":"post-4.on.host.own-edge.x.0.times.value"}},{"id":"post-4.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.edge.z.0.times.value"}},{"id":"post-4.on.host.own-edge.z.0.times","op":"mul@1","args":["post-4.dimension.depth","host.k.centre"],"outputs":{"value":"post-4.on.host.own-edge.z.0.times.value"}},{"id":"post-4.seat.rigid","op":"rigid@1","args":["post-4.on.host.edge.x.0.times.value","post-4.on.host.seat.y.0.times.value","post-4.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-4.seat.value"},"params":{"from":"post-4.seat","to":"host.local"}},{"id":"post-4.chain","op":"compose@1","args":["post-4.seat.value","post-4.poseValue"],"outputs":{"pose":"post-4.chain.value"}},{"id":"post-4.world","op":"compose@1","args":["host.chain.value","post-4.chain.value"],"outputs":{"pose":"post-4.world.value"}},{"id":"roof.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"roof.on.host.seat.y.0.times.value"}},{"id":"roof.on.host.along.y.0.times","op":"mul@1","args":["roof.dimension.height","k.ratio.0_5"],"outputs":{"value":"roof.on.host.along.y.0.times.value"}},{"id":"roof.on.host.along.y.1.sum","op":"add@1","args":["roof.on.host.along.y.0.times.value","d.mm.2500"],"outputs":{"value":"roof.on.host.along.y.1.sum.value"}},{"id":"roof.seat.rigid","op":"rigid@1","args":["d.mm.0","roof.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"roof.seat.value"},"params":{"from":"roof.seat","to":"host.local"}},{"id":"roof.chain","op":"compose@1","args":["roof.seat.value","roof.poseValue"],"outputs":{"pose":"roof.chain.value"}},{"id":"roof.world","op":"compose@1","args":["host.chain.value","roof.chain.value"],"outputs":{"pose":"roof.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":6000,"host.size.y":50,"host.size.z":4000,"post-1.dimension.width":100,"post-1.dimension.height":2500,"post-1.dimension.depth":100,"post-2.dimension.width":100,"post-2.dimension.height":2500,"post-2.dimension.depth":100,"post-3.dimension.width":100,"post-3.dimension.height":2500,"post-3.dimension.depth":100,"post-4.dimension.width":100,"post-4.dimension.height":2500,"post-4.dimension.depth":100,"roof.dimension.height":60},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-b8bfc6":"#b8bfc6","palette.tpl-6c7a89":"#6c7a89"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"post-1","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-2","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-3","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-4","material":{"token":"palette.tpl-b8bfc6"}},{"target":"roof","material":{"token":"palette.tpl-6c7a89"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"post-1","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-1","face":"bottom"},"origin":{"align":{"x":"min","z":"min"}}},{"id":"post-2","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-2","face":"bottom"},"origin":{"align":{"x":"min","z":"max"}}},{"id":"post-3","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-3","face":"bottom"},"origin":{"align":{"x":"max","z":"min"}}},{"id":"post-4","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-4","face":"bottom"},"origin":{"align":{"x":"max","z":"max"}}},{"id":"roof","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"roof","face":"bottom"},"origin":{"gap":2500}}]}
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_CANOPY","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-3.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"post-4.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"roof.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"post-1.k.centre","unit":"ratio","value":-0.5},{"id":"post-2.k.centre","unit":"ratio","value":-0.5},{"id":"post-3.k.centre","unit":"ratio","value":-0.5},{"id":"post-4.k.centre","unit":"ratio","value":-0.5},{"id":"roof.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"d.mm.2500","unit":"mm","value":2500}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"post-1.shape","op":"extrude@1","args":["post-1.start.value","post-1.dimension.height","post-1.dimension.width","post-1.dimension.depth"],"outputs":{"shape":"post-1.shapeValue"},"params":{"frame":"post-1.local","axis":"y","section":"rectangle"}},{"id":"post-1.pose","op":"rigid@1","args":["post-1.on.host.pose.x.t0.value","post-1.on.host.pose.y.t0.value","post-1.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-1.poseValue"},"params":{"from":"post-1.local","to":"post-1.seat"}},{"id":"post-1","op":"place@1","args":["post-1.shapeValue","post-1.world.value"],"outputs":{"placed":"post-1.placed"}},{"id":"post-1.start","op":"mul@1","args":["post-1.dimension.height","post-1.k.centre"],"outputs":{"value":"post-1.start.value"}},{"id":"post-2.shape","op":"extrude@1","args":["post-2.start.value","post-2.dimension.height","post-2.dimension.width","post-2.dimension.depth"],"outputs":{"shape":"post-2.shapeValue"},"params":{"frame":"post-2.local","axis":"y","section":"rectangle"}},{"id":"post-2.pose","op":"rigid@1","args":["post-2.on.host.pose.x.t0.value","post-2.on.host.pose.y.t0.value","post-2.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-2.poseValue"},"params":{"from":"post-2.local","to":"post-2.seat"}},{"id":"post-2","op":"place@1","args":["post-2.shapeValue","post-2.world.value"],"outputs":{"placed":"post-2.placed"}},{"id":"post-2.start","op":"mul@1","args":["post-2.dimension.height","post-2.k.centre"],"outputs":{"value":"post-2.start.value"}},{"id":"post-3.shape","op":"extrude@1","args":["post-3.start.value","post-3.dimension.height","post-3.dimension.width","post-3.dimension.depth"],"outputs":{"shape":"post-3.shapeValue"},"params":{"frame":"post-3.local","axis":"y","section":"rectangle"}},{"id":"post-3.pose","op":"rigid@1","args":["post-3.on.host.pose.x.t0.value","post-3.on.host.pose.y.t0.value","post-3.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-3.poseValue"},"params":{"from":"post-3.local","to":"post-3.seat"}},{"id":"post-3","op":"place@1","args":["post-3.shapeValue","post-3.world.value"],"outputs":{"placed":"post-3.placed"}},{"id":"post-3.start","op":"mul@1","args":["post-3.dimension.height","post-3.k.centre"],"outputs":{"value":"post-3.start.value"}},{"id":"post-4.shape","op":"extrude@1","args":["post-4.start.value","post-4.dimension.height","post-4.dimension.width","post-4.dimension.depth"],"outputs":{"shape":"post-4.shapeValue"},"params":{"frame":"post-4.local","axis":"y","section":"rectangle"}},{"id":"post-4.pose","op":"rigid@1","args":["post-4.on.host.pose.x.t0.value","post-4.on.host.pose.y.t0.value","post-4.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-4.poseValue"},"params":{"from":"post-4.local","to":"post-4.seat"}},{"id":"post-4","op":"place@1","args":["post-4.shapeValue","post-4.world.value"],"outputs":{"placed":"post-4.placed"}},{"id":"post-4.start","op":"mul@1","args":["post-4.dimension.height","post-4.k.centre"],"outputs":{"value":"post-4.start.value"}},{"id":"roof.shape","op":"extrude@1","args":["roof.start.value","roof.dimension.height","roof.dimension.x.value","roof.dimension.z.value"],"outputs":{"shape":"roof.shapeValue"},"params":{"frame":"roof.local","axis":"y","section":"rectangle"}},{"id":"roof.pose","op":"rigid@1","args":["d.mm.0","roof.on.host.pose.y.s0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"roof.poseValue"},"params":{"from":"roof.local","to":"roof.seat"}},{"id":"roof","op":"place@1","args":["roof.shapeValue","roof.world.value"],"outputs":{"placed":"roof.placed"}},{"id":"roof.start","op":"mul@1","args":["roof.dimension.height","roof.k.centre"],"outputs":{"value":"roof.start.value"}},{"id":"roof.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"roof.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"roof.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"roof.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"post-1.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"post-1.on.host.seat.x.t0.value"}},{"id":"post-1.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.seat.y.t0.value"}},{"id":"post-1.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"post-1.on.host.seat.z.t0.value"}},{"id":"post-1.on.host.pose.x.t0","op":"mul@1","args":["post-1.dimension.width","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.pose.x.t0.value"}},{"id":"post-1.on.host.pose.y.t0","op":"mul@1","args":["post-1.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.pose.y.t0.value"}},{"id":"post-1.on.host.pose.z.t0","op":"mul@1","args":["post-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"post-1.on.host.pose.z.t0.value"}},{"id":"post-1.seat.rigid","op":"rigid@1","args":["post-1.on.host.seat.x.t0.value","post-1.on.host.seat.y.t0.value","post-1.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-1.seat.value"},"params":{"from":"post-1.seat","to":"host.local"}},{"id":"post-1.chain","op":"compose@1","args":["post-1.seat.value","post-1.poseValue"],"outputs":{"pose":"post-1.chain.value"}},{"id":"post-1.world","op":"compose@1","args":["host.chain.value","post-1.chain.value"],"outputs":{"pose":"post-1.world.value"}},{"id":"post-2.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"post-2.on.host.seat.x.t0.value"}},{"id":"post-2.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.seat.y.t0.value"}},{"id":"post-2.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.seat.z.t0.value"}},{"id":"post-2.on.host.pose.x.t0","op":"mul@1","args":["post-2.dimension.width","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.pose.x.t0.value"}},{"id":"post-2.on.host.pose.y.t0","op":"mul@1","args":["post-2.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-2.on.host.pose.y.t0.value"}},{"id":"post-2.on.host.pose.z.t0","op":"mul@1","args":["post-2.dimension.depth","host.k.centre"],"outputs":{"value":"post-2.on.host.pose.z.t0.value"}},{"id":"post-2.seat.rigid","op":"rigid@1","args":["post-2.on.host.seat.x.t0.value","post-2.on.host.seat.y.t0.value","post-2.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-2.seat.value"},"params":{"from":"post-2.seat","to":"host.local"}},{"id":"post-2.chain","op":"compose@1","args":["post-2.seat.value","post-2.poseValue"],"outputs":{"pose":"post-2.chain.value"}},{"id":"post-2.world","op":"compose@1","args":["host.chain.value","post-2.chain.value"],"outputs":{"pose":"post-2.world.value"}},{"id":"post-3.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.seat.x.t0.value"}},{"id":"post-3.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.seat.y.t0.value"}},{"id":"post-3.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"post-3.on.host.seat.z.t0.value"}},{"id":"post-3.on.host.pose.x.t0","op":"mul@1","args":["post-3.dimension.width","host.k.centre"],"outputs":{"value":"post-3.on.host.pose.x.t0.value"}},{"id":"post-3.on.host.pose.y.t0","op":"mul@1","args":["post-3.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.pose.y.t0.value"}},{"id":"post-3.on.host.pose.z.t0","op":"mul@1","args":["post-3.dimension.depth","k.ratio.0_5"],"outputs":{"value":"post-3.on.host.pose.z.t0.value"}},{"id":"post-3.seat.rigid","op":"rigid@1","args":["post-3.on.host.seat.x.t0.value","post-3.on.host.seat.y.t0.value","post-3.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-3.seat.value"},"params":{"from":"post-3.seat","to":"host.local"}},{"id":"post-3.chain","op":"compose@1","args":["post-3.seat.value","post-3.poseValue"],"outputs":{"pose":"post-3.chain.value"}},{"id":"post-3.world","op":"compose@1","args":["host.chain.value","post-3.chain.value"],"outputs":{"pose":"post-3.world.value"}},{"id":"post-4.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.seat.x.t0.value"}},{"id":"post-4.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.seat.y.t0.value"}},{"id":"post-4.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.seat.z.t0.value"}},{"id":"post-4.on.host.pose.x.t0","op":"mul@1","args":["post-4.dimension.width","host.k.centre"],"outputs":{"value":"post-4.on.host.pose.x.t0.value"}},{"id":"post-4.on.host.pose.y.t0","op":"mul@1","args":["post-4.dimension.height","k.ratio.0_5"],"outputs":{"value":"post-4.on.host.pose.y.t0.value"}},{"id":"post-4.on.host.pose.z.t0","op":"mul@1","args":["post-4.dimension.depth","host.k.centre"],"outputs":{"value":"post-4.on.host.pose.z.t0.value"}},{"id":"post-4.seat.rigid","op":"rigid@1","args":["post-4.on.host.seat.x.t0.value","post-4.on.host.seat.y.t0.value","post-4.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"post-4.seat.value"},"params":{"from":"post-4.seat","to":"host.local"}},{"id":"post-4.chain","op":"compose@1","args":["post-4.seat.value","post-4.poseValue"],"outputs":{"pose":"post-4.chain.value"}},{"id":"post-4.world","op":"compose@1","args":["host.chain.value","post-4.chain.value"],"outputs":{"pose":"post-4.world.value"}},{"id":"roof.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"roof.on.host.seat.y.t0.value"}},{"id":"roof.on.host.pose.y.t1","op":"mul@1","args":["roof.dimension.height","k.ratio.0_5"],"outputs":{"value":"roof.on.host.pose.y.t1.value"}},{"id":"roof.on.host.pose.y.s0","op":"add@1","args":["d.mm.2500","roof.on.host.pose.y.t1.value"],"outputs":{"value":"roof.on.host.pose.y.s0.value"}},{"id":"roof.seat.rigid","op":"rigid@1","args":["d.mm.0","roof.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"roof.seat.value"},"params":{"from":"roof.seat","to":"host.local"}},{"id":"roof.chain","op":"compose@1","args":["roof.seat.value","roof.poseValue"],"outputs":{"pose":"roof.chain.value"}},{"id":"roof.world","op":"compose@1","args":["host.chain.value","roof.chain.value"],"outputs":{"pose":"roof.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":6000,"host.size.y":50,"host.size.z":4000,"post-1.dimension.width":100,"post-1.dimension.height":2500,"post-1.dimension.depth":100,"post-2.dimension.width":100,"post-2.dimension.height":2500,"post-2.dimension.depth":100,"post-3.dimension.width":100,"post-3.dimension.height":2500,"post-3.dimension.depth":100,"post-4.dimension.width":100,"post-4.dimension.height":2500,"post-4.dimension.depth":100,"roof.dimension.height":60},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-b8bfc6":"#b8bfc6","palette.tpl-6c7a89":"#6c7a89"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"post-1","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-2","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-3","material":{"token":"palette.tpl-b8bfc6"}},{"target":"post-4","material":{"token":"palette.tpl-b8bfc6"}},{"target":"roof","material":{"token":"palette.tpl-6c7a89"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"post-1","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-1"},"origin":{"align":{"x":"min","z":"min"}}},{"id":"post-2","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-2"},"origin":{"align":{"x":"min","z":"max"}}},{"id":"post-3","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-3"},"origin":{"align":{"x":"max","z":"min"}}},{"id":"post-4","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"post-4"},"origin":{"align":{"x":"max","z":"max"}}},{"id":"roof","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"roof"},"origin":{"gap":2500}}]}
|
|
@@ -133,8 +133,7 @@
|
|
|
133
133
|
"face": "top"
|
|
134
134
|
},
|
|
135
135
|
"body1": {
|
|
136
|
-
"part": "{id}-post-1"
|
|
137
|
-
"face": "bottom"
|
|
136
|
+
"part": "{id}-post-1"
|
|
138
137
|
},
|
|
139
138
|
"origin": {
|
|
140
139
|
"align": {
|
|
@@ -154,8 +153,7 @@
|
|
|
154
153
|
"face": "top"
|
|
155
154
|
},
|
|
156
155
|
"body1": {
|
|
157
|
-
"part": "{id}-post-2"
|
|
158
|
-
"face": "bottom"
|
|
156
|
+
"part": "{id}-post-2"
|
|
159
157
|
},
|
|
160
158
|
"origin": {
|
|
161
159
|
"align": {
|
|
@@ -175,8 +173,7 @@
|
|
|
175
173
|
"face": "top"
|
|
176
174
|
},
|
|
177
175
|
"body1": {
|
|
178
|
-
"part": "{id}-post-3"
|
|
179
|
-
"face": "bottom"
|
|
176
|
+
"part": "{id}-post-3"
|
|
180
177
|
},
|
|
181
178
|
"origin": {
|
|
182
179
|
"align": {
|
|
@@ -196,8 +193,7 @@
|
|
|
196
193
|
"face": "top"
|
|
197
194
|
},
|
|
198
195
|
"body1": {
|
|
199
|
-
"part": "{id}-post-4"
|
|
200
|
-
"face": "bottom"
|
|
196
|
+
"part": "{id}-post-4"
|
|
201
197
|
},
|
|
202
198
|
"origin": {
|
|
203
199
|
"align": {
|
|
@@ -217,8 +213,7 @@
|
|
|
217
213
|
"face": "top"
|
|
218
214
|
},
|
|
219
215
|
"body1": {
|
|
220
|
-
"part": "{id}-roof"
|
|
221
|
-
"face": "bottom"
|
|
216
|
+
"part": "{id}-roof"
|
|
222
217
|
},
|
|
223
218
|
"origin": {
|
|
224
219
|
"gap": {
|
package/recipes/cart/build.mts
CHANGED
|
@@ -4,21 +4,21 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 3000, y: 50, z: 2000 }, 'TPL_CART'))
|
|
6
6
|
m.box('deck', 1200, 40, 800)
|
|
7
|
-
.on('deck', '
|
|
7
|
+
.on('deck', 'host', 'top', undefined, 140)
|
|
8
8
|
.colour('deck', 'cart-deck', '#0b4f8a')
|
|
9
9
|
const corners = [['1', 'min', 'min'], ['2', 'min', 'max'], ['3', 'max', 'min'], ['4', 'max', 'max']] as const
|
|
10
10
|
for (const [n, x, z] of corners) {
|
|
11
11
|
m.box(`fork-${n}`, 80, 40, 80)
|
|
12
|
-
.on(`fork-${n}`, '
|
|
12
|
+
.on(`fork-${n}`, 'deck', 'bottom', { x, z })
|
|
13
13
|
.colour(`fork-${n}`, 'leg', '#7d8790')
|
|
14
14
|
.add({ id: `wheel-${n}`, kind: 'cylinder', dimensions: { radius: 50, length: 30 }, rotation: { x: 90, y: 0, z: 0 } } as never)
|
|
15
|
-
.on(`wheel-${n}`,
|
|
15
|
+
.on(`wheel-${n}`, `fork-${n}`, 'bottom')
|
|
16
16
|
.colour(`wheel-${n}`, 'wheel', '#2f3437')
|
|
17
17
|
}
|
|
18
18
|
for (const [p, x] of [['post-left', 'min'], ['post-right', 'max']] as const)
|
|
19
|
-
m.box(p, 30, 900, 30).on(p, '
|
|
19
|
+
m.box(p, 30, 900, 30).on(p, 'deck', 'top', { x, z: 'min' }).colour(p, 'rail', '#9aa3ab')
|
|
20
20
|
m.box('grip', 1200, 30, 30)
|
|
21
|
-
.on('grip', '
|
|
21
|
+
.on('grip', 'deck', 'top', { z: 'min' }, 900)
|
|
22
22
|
.colour('grip', 'rail', '#9aa3ab')
|
|
23
23
|
return m.asset
|
|
24
24
|
}
|