@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
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
"face": "left"
|
|
96
96
|
},
|
|
97
97
|
"body1": {
|
|
98
|
-
"part": "{id}-left-cover"
|
|
99
|
-
"face": "right"
|
|
98
|
+
"part": "{id}-left-cover"
|
|
100
99
|
},
|
|
101
100
|
"origin": {}
|
|
102
101
|
}
|
|
@@ -111,8 +110,7 @@
|
|
|
111
110
|
"face": "right"
|
|
112
111
|
},
|
|
113
112
|
"body1": {
|
|
114
|
-
"part": "{id}-right-cover"
|
|
115
|
-
"face": "left"
|
|
113
|
+
"part": "{id}-right-cover"
|
|
116
114
|
},
|
|
117
115
|
"origin": {}
|
|
118
116
|
}
|
|
@@ -4,7 +4,7 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 6000, y: 50, z: 1200 }, 'TPL_FFU_ROW', 3000))
|
|
6
6
|
m.box('ffu', 1150, 250, 580)
|
|
7
|
-
.on('ffu', '
|
|
7
|
+
.on('ffu', 'host', 'top')
|
|
8
8
|
.colour('ffu', 'steel', '#b8c1c9')
|
|
9
9
|
.do({ kind: 'make-repeat', part: 'ffu', axis: 'x', pitch: 1200, narrowRange: true })
|
|
10
10
|
return m.asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_FFU_ROW","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":"ffu.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ffu.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ffu.dimension.depth","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":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_FFU_ROW","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":"ffu.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ffu.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ffu.dimension.depth","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":"d.mm.3000","unit":"mm","value":3000},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"ffu.k.centre","unit":"ratio","value":-0.5},{"id":"limit.count.100","unit":"count","value":100},{"id":"d.mm.1200","unit":"mm","value":1200}],"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.s0.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":"ffu.shape","op":"extrude@1","args":["ffu.start.value","ffu.dimension.height","ffu.dimension.width","ffu.dimension.depth"],"outputs":{"shape":"ffu.shapeValue"},"params":{"frame":"ffu.local","axis":"y","section":"rectangle"}},{"id":"ffu.pose","op":"rigid@1","args":["d.mm.0","ffu.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ffu.poseValue"},"params":{"from":"ffu.local","to":"ffu.seat"}},{"id":"ffu","op":"member@1","args":["ffu.shapeValue","ffu.poseValue"],"outputs":{"placed":"ffu.placed"}},{"id":"ffu.start","op":"mul@1","args":["ffu.dimension.height","ffu.k.centre"],"outputs":{"value":"ffu.start.value"}},{"id":"host.on.plane.pose.y.t1","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t1.value"}},{"id":"host.on.plane.pose.y.s0","op":"add@1","args":["d.mm.3000","host.on.plane.pose.y.t1.value"],"outputs":{"value":"host.on.plane.pose.y.s0.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":"ffu.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"ffu.on.host.seat.y.t0.value"}},{"id":"ffu.on.host.pose.y.t0","op":"mul@1","args":["ffu.dimension.height","k.ratio.0_5"],"outputs":{"value":"ffu.on.host.pose.y.t0.value"}},{"id":"ffu.seat.rigid","op":"rigid@1","args":["ffu.row.start.0.times.value","ffu.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ffu.seat.value"},"params":{"from":"ffu.seat","to":"host.local"}},{"id":"ffu.row.start.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"ffu.row.start.0.times.value"}},{"id":"ffu.row.length.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"ffu.row.length.0.times.value"}},{"id":"ffu.row.length.1.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"ffu.row.length.1.times.value"}},{"id":"ffu.row.length.1.sum","op":"add@1","args":["ffu.row.length.0.times.value","ffu.row.length.1.times.value"],"outputs":{"value":"ffu.row.length.1.sum.value"}},{"id":"ffu.layout","op":"fit-pitch@1","args":["ffu.row.length.1.sum.value","d.mm.0","d.mm.0","ffu.dimension.width","d.mm.1200","k.ratio.0_5","limit.count.100"],"outputs":{"layout":"ffu.layout.value"}},{"id":"ffu.assembly","op":"assembly@1","args":["ffu.placed"],"outputs":{"assembly":"ffu.assembly.value"}},{"id":"ffu.row","op":"compose@1","args":["host.chain.value","ffu.seat.value"],"outputs":{"pose":"ffu.row.value"}},{"id":"ffu.repeat","op":"repeat@1","args":["ffu.layout.value","ffu.assembly.value","ffu.row.value"],"outputs":{"collection":"ffu.repeat.value"},"params":{"axis":"x"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":6000,"host.size.y":50,"host.size.z":1200,"ffu.dimension.width":1150,"ffu.dimension.height":250,"ffu.dimension.depth":580},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-b8c1c9":"#b8c1c9"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"ffu","material":{"token":"palette.tpl-b8c1c9"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{"gap":3000}},{"id":"ffu","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"ffu"},"origin":{},"repeat":{"axis":"X","pitch":1200}}]}
|
|
@@ -4,10 +4,10 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 4000, y: 3000, z: 200 }, 'TPL_FIRE_EXTINGUISHER'))
|
|
6
6
|
m.box('bracket', 200, 20, 200)
|
|
7
|
-
.on('bracket', '
|
|
7
|
+
.on('bracket', 'host', 'front', { y: { mm: { from: { of: 'part', part: 'host', axis: 'y' }, times: -0.3 } } })
|
|
8
8
|
.colour('bracket', 'leg', '#7d8790')
|
|
9
9
|
.add({ id: 'bottle', kind: 'cylinder', dimensions: { radius: 80, length: 500 } } as never)
|
|
10
|
-
.on('bottle', '
|
|
10
|
+
.on('bottle', 'bracket', 'top')
|
|
11
11
|
.colour('bottle', 'estop', '#d62828')
|
|
12
12
|
return m.asset
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_FIRE_EXTINGUISHER","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":"bracket.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bracket.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bracket.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bottle.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bottle.dimension.length","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":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_FIRE_EXTINGUISHER","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":"bracket.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bracket.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bracket.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bottle.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bottle.dimension.length","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":"bracket.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio._0_3","unit":"ratio","value":-0.3},{"id":"bottle.k.centre","unit":"ratio","value":-0.5}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","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":"bracket.shape","op":"extrude@1","args":["bracket.start.value","bracket.dimension.height","bracket.dimension.width","bracket.dimension.depth"],"outputs":{"shape":"bracket.shapeValue"},"params":{"frame":"bracket.local","axis":"y","section":"rectangle"}},{"id":"bracket.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","bracket.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bracket.poseValue"},"params":{"from":"bracket.local","to":"bracket.seat"}},{"id":"bracket","op":"place@1","args":["bracket.shapeValue","bracket.world.value"],"outputs":{"placed":"bracket.placed"}},{"id":"bracket.start","op":"mul@1","args":["bracket.dimension.height","bracket.k.centre"],"outputs":{"value":"bracket.start.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"bottle.shape","op":"extrude@1","args":["bottle.start.value","bottle.dimension.length","bottle.dimension.radius","bottle.dimension.radius"],"outputs":{"shape":"bottle.shapeValue"},"params":{"frame":"bottle.local","axis":"y","section":"ellipse"}},{"id":"bottle.pose","op":"rigid@1","args":["d.mm.0","bottle.on.bracket.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bottle.poseValue"},"params":{"from":"bottle.local","to":"bottle.seat"}},{"id":"bottle","op":"place@1","args":["bottle.shapeValue","bottle.world.value"],"outputs":{"placed":"bottle.placed"}},{"id":"bottle.start","op":"mul@1","args":["bottle.dimension.length","bottle.k.centre"],"outputs":{"value":"bottle.start.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.dimension.y.value","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":"bracket.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio._0_3"],"outputs":{"value":"bracket.on.host.align.y.times.value"}},{"id":"bracket.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"bracket.on.host.seat.z.t0.value"}},{"id":"bracket.on.host.pose.z.t0","op":"mul@1","args":["bracket.dimension.depth","k.ratio.0_5"],"outputs":{"value":"bracket.on.host.pose.z.t0.value"}},{"id":"bracket.seat.rigid","op":"rigid@1","args":["d.mm.0","bracket.on.host.align.y.times.value","bracket.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bracket.seat.value"},"params":{"from":"bracket.seat","to":"host.local"}},{"id":"bracket.chain","op":"compose@1","args":["bracket.seat.value","bracket.poseValue"],"outputs":{"pose":"bracket.chain.value"}},{"id":"bracket.world","op":"compose@1","args":["host.chain.value","bracket.chain.value"],"outputs":{"pose":"bracket.world.value"}},{"id":"bottle.on.bracket.seat.y.t0","op":"mul@1","args":["bracket.dimension.height","k.ratio.0_5"],"outputs":{"value":"bottle.on.bracket.seat.y.t0.value"}},{"id":"bottle.on.bracket.pose.y.t0","op":"mul@1","args":["bottle.dimension.length","k.ratio.0_5"],"outputs":{"value":"bottle.on.bracket.pose.y.t0.value"}},{"id":"bottle.seat.rigid","op":"rigid@1","args":["d.mm.0","bottle.on.bracket.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bottle.seat.value"},"params":{"from":"bottle.seat","to":"bracket.local"}},{"id":"bottle.chain","op":"compose@1","args":["bottle.seat.value","bottle.poseValue"],"outputs":{"pose":"bottle.chain.value"}},{"id":"bottle.world","op":"compose@1","args":["bracket.world.value","bottle.chain.value"],"outputs":{"pose":"bottle.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":200,"bracket.dimension.width":200,"bracket.dimension.height":20,"bracket.dimension.depth":200,"bottle.dimension.radius":80,"bottle.dimension.length":500},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-7d8790":"#7d8790","palette.tpl-d62828":"#d62828"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"bracket","material":{"token":"palette.tpl-7d8790"}},{"target":"bottle","material":{"token":"palette.tpl-d62828"},"segments":12}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"bracket","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"bracket"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":-0.3}}}}},{"id":"bottle","type":"fixed","body0":{"part":"bracket","face":"top"},"body1":{"part":"bottle"},"origin":{}}]}
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
"face": "front"
|
|
51
51
|
},
|
|
52
52
|
"body1": {
|
|
53
|
-
"part": "{id}-bracket"
|
|
54
|
-
"face": "back"
|
|
53
|
+
"part": "{id}-bracket"
|
|
55
54
|
},
|
|
56
55
|
"origin": {
|
|
57
56
|
"align": {
|
|
@@ -79,8 +78,7 @@
|
|
|
79
78
|
"face": "top"
|
|
80
79
|
},
|
|
81
80
|
"body1": {
|
|
82
|
-
"part": "{id}-bottle"
|
|
83
|
-
"face": "bottom"
|
|
81
|
+
"part": "{id}-bottle"
|
|
84
82
|
},
|
|
85
83
|
"origin": {}
|
|
86
84
|
}
|
|
@@ -3,7 +3,7 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
3
3
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 4000, y: 3000, z: 200 }, 'TPL_FIRST_AID_BOX'))
|
|
6
|
-
m.box('box', 400, 300, 150).on('box', '
|
|
7
|
-
.box('cross', 120, 120, 5).on('cross', '
|
|
6
|
+
m.box('box', 400, 300, 150).on('box', 'host', 'front').colour('box', 'aid', '#27ae60')
|
|
7
|
+
.box('cross', 120, 120, 5).on('cross', 'box', 'front').colour('cross', 'white', '#ffffff')
|
|
8
8
|
return m.asset
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_FIRST_AID_BOX","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":"box.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"box.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"box.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.depth","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":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_FIRST_AID_BOX","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":"box.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"box.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"box.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cross.dimension.depth","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":"box.k.centre","unit":"ratio","value":-0.5},{"id":"cross.k.centre","unit":"ratio","value":-0.5}],"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":"box.shape","op":"extrude@1","args":["box.start.value","box.dimension.height","box.dimension.width","box.dimension.depth"],"outputs":{"shape":"box.shapeValue"},"params":{"frame":"box.local","axis":"y","section":"rectangle"}},{"id":"box.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","box.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"box.poseValue"},"params":{"from":"box.local","to":"box.seat"}},{"id":"box","op":"place@1","args":["box.shapeValue","box.world.value"],"outputs":{"placed":"box.placed"}},{"id":"box.start","op":"mul@1","args":["box.dimension.height","box.k.centre"],"outputs":{"value":"box.start.value"}},{"id":"cross.shape","op":"extrude@1","args":["cross.start.value","cross.dimension.height","cross.dimension.width","cross.dimension.depth"],"outputs":{"shape":"cross.shapeValue"},"params":{"frame":"cross.local","axis":"y","section":"rectangle"}},{"id":"cross.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","cross.on.box.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"cross.poseValue"},"params":{"from":"cross.local","to":"cross.seat"}},{"id":"cross","op":"place@1","args":["cross.shapeValue","cross.world.value"],"outputs":{"placed":"cross.placed"}},{"id":"cross.start","op":"mul@1","args":["cross.dimension.height","cross.k.centre"],"outputs":{"value":"cross.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":"box.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"box.on.host.seat.z.t0.value"}},{"id":"box.on.host.pose.z.t0","op":"mul@1","args":["box.dimension.depth","k.ratio.0_5"],"outputs":{"value":"box.on.host.pose.z.t0.value"}},{"id":"box.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","box.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"box.seat.value"},"params":{"from":"box.seat","to":"host.local"}},{"id":"box.chain","op":"compose@1","args":["box.seat.value","box.poseValue"],"outputs":{"pose":"box.chain.value"}},{"id":"box.world","op":"compose@1","args":["host.chain.value","box.chain.value"],"outputs":{"pose":"box.world.value"}},{"id":"cross.on.box.seat.z.t0","op":"mul@1","args":["box.dimension.depth","k.ratio.0_5"],"outputs":{"value":"cross.on.box.seat.z.t0.value"}},{"id":"cross.on.box.pose.z.t0","op":"mul@1","args":["cross.dimension.depth","k.ratio.0_5"],"outputs":{"value":"cross.on.box.pose.z.t0.value"}},{"id":"cross.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","cross.on.box.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"cross.seat.value"},"params":{"from":"cross.seat","to":"box.local"}},{"id":"cross.chain","op":"compose@1","args":["cross.seat.value","cross.poseValue"],"outputs":{"pose":"cross.chain.value"}},{"id":"cross.world","op":"compose@1","args":["box.world.value","cross.chain.value"],"outputs":{"pose":"cross.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":200,"box.dimension.width":400,"box.dimension.height":300,"box.dimension.depth":150,"cross.dimension.width":120,"cross.dimension.height":120,"cross.dimension.depth":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-27ae60":"#27ae60","palette.tpl-ffffff":"#ffffff"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"box","material":{"token":"palette.tpl-27ae60"}},{"target":"cross","material":{"token":"palette.tpl-ffffff"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"box","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"box"},"origin":{}},{"id":"cross","type":"fixed","body0":{"part":"box","face":"front"},"body1":{"part":"cross"},"origin":{}}]}
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "front"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-box"
|
|
55
|
-
"face": "back"
|
|
54
|
+
"part": "{id}-box"
|
|
56
55
|
},
|
|
57
56
|
"origin": {}
|
|
58
57
|
}
|
|
@@ -67,8 +66,7 @@
|
|
|
67
66
|
"face": "front"
|
|
68
67
|
},
|
|
69
68
|
"body1": {
|
|
70
|
-
"part": "{id}-cross"
|
|
71
|
-
"face": "back"
|
|
69
|
+
"part": "{id}-cross"
|
|
72
70
|
},
|
|
73
71
|
"origin": {}
|
|
74
72
|
}
|
|
@@ -6,12 +6,12 @@ export default function build() {
|
|
|
6
6
|
for (const [line, z] of [['front', 'max'], ['back', 'min']] as const)
|
|
7
7
|
m.box(line, 6000, 5, 100)
|
|
8
8
|
.follow(line, 'x', 'host', 'x')
|
|
9
|
-
.on(line, '
|
|
9
|
+
.on(line, 'host', 'top', { z })
|
|
10
10
|
.colour(line, 'palette.zone', '#f2c200')
|
|
11
11
|
for (const [line, x] of [['left', 'min'], ['right', 'max']] as const)
|
|
12
12
|
m.box(line, 100, 5, 4000)
|
|
13
13
|
.follow(line, 'z', 'host', 'z')
|
|
14
|
-
.on(line, '
|
|
14
|
+
.on(line, 'host', 'top', { x })
|
|
15
15
|
.colour(line, 'palette.zone', '#f2c200')
|
|
16
16
|
return m.asset
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_FLOOR_ZONE","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":"front.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"front.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"back.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"back.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"left.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"left.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right.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":"front.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"back.k.centre","unit":"ratio","value":-0.5},{"id":"left.k.centre","unit":"ratio","value":-0.5},{"id":"right.k.centre","unit":"ratio","value":-0.5}],"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":"front.shape","op":"extrude@1","args":["front.start.value","front.dimension.height","front.dimension.x.value","front.dimension.depth"],"outputs":{"shape":"front.shapeValue"},"params":{"frame":"front.local","axis":"y","section":"rectangle"}},{"id":"front.pose","op":"rigid@1","args":["d.mm.0","front.on.host.along.y.1.sum.value","front.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"front.poseValue"},"params":{"from":"front.local","to":"front.seat"}},{"id":"front","op":"place@1","args":["front.shapeValue","front.world.value"],"outputs":{"placed":"front.placed"}},{"id":"front.start","op":"mul@1","args":["front.dimension.height","front.k.centre"],"outputs":{"value":"front.start.value"}},{"id":"front.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"front.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"back.shape","op":"extrude@1","args":["back.start.value","back.dimension.height","back.dimension.x.value","back.dimension.depth"],"outputs":{"shape":"back.shapeValue"},"params":{"frame":"back.local","axis":"y","section":"rectangle"}},{"id":"back.pose","op":"rigid@1","args":["d.mm.0","back.on.host.along.y.1.sum.value","back.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"back.poseValue"},"params":{"from":"back.local","to":"back.seat"}},{"id":"back","op":"place@1","args":["back.shapeValue","back.world.value"],"outputs":{"placed":"back.placed"}},{"id":"back.start","op":"mul@1","args":["back.dimension.height","back.k.centre"],"outputs":{"value":"back.start.value"}},{"id":"back.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"back.dimension.x.value"}},{"id":"left.shape","op":"extrude@1","args":["left.start.value","left.dimension.height","left.dimension.width","left.dimension.z.value"],"outputs":{"shape":"left.shapeValue"},"params":{"frame":"left.local","axis":"y","section":"rectangle"}},{"id":"left.pose","op":"rigid@1","args":["left.on.host.own-edge.x.0.times.value","left.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left.poseValue"},"params":{"from":"left.local","to":"left.seat"}},{"id":"left","op":"place@1","args":["left.shapeValue","left.world.value"],"outputs":{"placed":"left.placed"}},{"id":"left.start","op":"mul@1","args":["left.dimension.height","left.k.centre"],"outputs":{"value":"left.start.value"}},{"id":"left.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"left.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"right.shape","op":"extrude@1","args":["right.start.value","right.dimension.height","right.dimension.width","right.dimension.z.value"],"outputs":{"shape":"right.shapeValue"},"params":{"frame":"right.local","axis":"y","section":"rectangle"}},{"id":"right.pose","op":"rigid@1","args":["right.on.host.own-edge.x.0.times.value","right.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right.poseValue"},"params":{"from":"right.local","to":"right.seat"}},{"id":"right","op":"place@1","args":["right.shapeValue","right.world.value"],"outputs":{"placed":"right.placed"}},{"id":"right.start","op":"mul@1","args":["right.dimension.height","right.k.centre"],"outputs":{"value":"right.start.value"}},{"id":"right.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"right.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":"front.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"front.on.host.seat.y.0.times.value"}},{"id":"front.on.host.along.y.0.times","op":"mul@1","args":["front.dimension.height","k.ratio.0_5"],"outputs":{"value":"front.on.host.along.y.0.times.value"}},{"id":"front.on.host.along.y.1.sum","op":"add@1","args":["front.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"front.on.host.along.y.1.sum.value"}},{"id":"front.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"front.on.host.edge.z.0.times.value"}},{"id":"front.on.host.own-edge.z.0.times","op":"mul@1","args":["front.dimension.depth","host.k.centre"],"outputs":{"value":"front.on.host.own-edge.z.0.times.value"}},{"id":"front.seat.rigid","op":"rigid@1","args":["d.mm.0","front.on.host.seat.y.0.times.value","front.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"front.seat.value"},"params":{"from":"front.seat","to":"host.local"}},{"id":"front.chain","op":"compose@1","args":["front.seat.value","front.poseValue"],"outputs":{"pose":"front.chain.value"}},{"id":"front.world","op":"compose@1","args":["host.chain.value","front.chain.value"],"outputs":{"pose":"front.world.value"}},{"id":"back.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"back.on.host.seat.y.0.times.value"}},{"id":"back.on.host.along.y.0.times","op":"mul@1","args":["back.dimension.height","k.ratio.0_5"],"outputs":{"value":"back.on.host.along.y.0.times.value"}},{"id":"back.on.host.along.y.1.sum","op":"add@1","args":["back.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"back.on.host.along.y.1.sum.value"}},{"id":"back.on.host.edge.z.0.times","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"back.on.host.edge.z.0.times.value"}},{"id":"back.on.host.own-edge.z.0.times","op":"mul@1","args":["back.dimension.depth","k.ratio.0_5"],"outputs":{"value":"back.on.host.own-edge.z.0.times.value"}},{"id":"back.seat.rigid","op":"rigid@1","args":["d.mm.0","back.on.host.seat.y.0.times.value","back.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"back.seat.value"},"params":{"from":"back.seat","to":"host.local"}},{"id":"back.chain","op":"compose@1","args":["back.seat.value","back.poseValue"],"outputs":{"pose":"back.chain.value"}},{"id":"back.world","op":"compose@1","args":["host.chain.value","back.chain.value"],"outputs":{"pose":"back.world.value"}},{"id":"left.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"left.on.host.seat.y.0.times.value"}},{"id":"left.on.host.along.y.0.times","op":"mul@1","args":["left.dimension.height","k.ratio.0_5"],"outputs":{"value":"left.on.host.along.y.0.times.value"}},{"id":"left.on.host.along.y.1.sum","op":"add@1","args":["left.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"left.on.host.along.y.1.sum.value"}},{"id":"left.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"left.on.host.edge.x.0.times.value"}},{"id":"left.on.host.own-edge.x.0.times","op":"mul@1","args":["left.dimension.width","k.ratio.0_5"],"outputs":{"value":"left.on.host.own-edge.x.0.times.value"}},{"id":"left.seat.rigid","op":"rigid@1","args":["left.on.host.edge.x.0.times.value","left.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left.seat.value"},"params":{"from":"left.seat","to":"host.local"}},{"id":"left.chain","op":"compose@1","args":["left.seat.value","left.poseValue"],"outputs":{"pose":"left.chain.value"}},{"id":"left.world","op":"compose@1","args":["host.chain.value","left.chain.value"],"outputs":{"pose":"left.world.value"}},{"id":"right.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"right.on.host.seat.y.0.times.value"}},{"id":"right.on.host.along.y.0.times","op":"mul@1","args":["right.dimension.height","k.ratio.0_5"],"outputs":{"value":"right.on.host.along.y.0.times.value"}},{"id":"right.on.host.along.y.1.sum","op":"add@1","args":["right.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"right.on.host.along.y.1.sum.value"}},{"id":"right.on.host.edge.x.0.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"right.on.host.edge.x.0.times.value"}},{"id":"right.on.host.own-edge.x.0.times","op":"mul@1","args":["right.dimension.width","host.k.centre"],"outputs":{"value":"right.on.host.own-edge.x.0.times.value"}},{"id":"right.seat.rigid","op":"rigid@1","args":["right.on.host.edge.x.0.times.value","right.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right.seat.value"},"params":{"from":"right.seat","to":"host.local"}},{"id":"right.chain","op":"compose@1","args":["right.seat.value","right.poseValue"],"outputs":{"pose":"right.chain.value"}},{"id":"right.world","op":"compose@1","args":["host.chain.value","right.chain.value"],"outputs":{"pose":"right.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":6000,"host.size.y":50,"host.size.z":4000,"front.dimension.height":5,"front.dimension.depth":100,"back.dimension.height":5,"back.dimension.depth":100,"left.dimension.width":100,"left.dimension.height":5,"right.dimension.width":100,"right.dimension.height":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"front","material":{"token":"palette.tpl-f2c200"}},{"target":"back","material":{"token":"palette.tpl-f2c200"}},{"target":"left","material":{"token":"palette.tpl-f2c200"}},{"target":"right","material":{"token":"palette.tpl-f2c200"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"front","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"front","face":"bottom"},"origin":{"align":{"z":"max"}}},{"id":"back","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"back","face":"bottom"},"origin":{"align":{"z":"min"}}},{"id":"left","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"left","face":"bottom"},"origin":{"align":{"x":"min"}}},{"id":"right","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"right","face":"bottom"},"origin":{"align":{"x":"max"}}}]}
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_FLOOR_ZONE","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":"front.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"front.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"back.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"back.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"left.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"left.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right.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":"front.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"back.k.centre","unit":"ratio","value":-0.5},{"id":"left.k.centre","unit":"ratio","value":-0.5},{"id":"right.k.centre","unit":"ratio","value":-0.5}],"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":"front.shape","op":"extrude@1","args":["front.start.value","front.dimension.height","front.dimension.x.value","front.dimension.depth"],"outputs":{"shape":"front.shapeValue"},"params":{"frame":"front.local","axis":"y","section":"rectangle"}},{"id":"front.pose","op":"rigid@1","args":["d.mm.0","front.on.host.pose.y.t0.value","front.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"front.poseValue"},"params":{"from":"front.local","to":"front.seat"}},{"id":"front","op":"place@1","args":["front.shapeValue","front.world.value"],"outputs":{"placed":"front.placed"}},{"id":"front.start","op":"mul@1","args":["front.dimension.height","front.k.centre"],"outputs":{"value":"front.start.value"}},{"id":"front.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"front.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"back.shape","op":"extrude@1","args":["back.start.value","back.dimension.height","back.dimension.x.value","back.dimension.depth"],"outputs":{"shape":"back.shapeValue"},"params":{"frame":"back.local","axis":"y","section":"rectangle"}},{"id":"back.pose","op":"rigid@1","args":["d.mm.0","back.on.host.pose.y.t0.value","back.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"back.poseValue"},"params":{"from":"back.local","to":"back.seat"}},{"id":"back","op":"place@1","args":["back.shapeValue","back.world.value"],"outputs":{"placed":"back.placed"}},{"id":"back.start","op":"mul@1","args":["back.dimension.height","back.k.centre"],"outputs":{"value":"back.start.value"}},{"id":"back.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"back.dimension.x.value"}},{"id":"left.shape","op":"extrude@1","args":["left.start.value","left.dimension.height","left.dimension.width","left.dimension.z.value"],"outputs":{"shape":"left.shapeValue"},"params":{"frame":"left.local","axis":"y","section":"rectangle"}},{"id":"left.pose","op":"rigid@1","args":["left.on.host.pose.x.t0.value","left.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left.poseValue"},"params":{"from":"left.local","to":"left.seat"}},{"id":"left","op":"place@1","args":["left.shapeValue","left.world.value"],"outputs":{"placed":"left.placed"}},{"id":"left.start","op":"mul@1","args":["left.dimension.height","left.k.centre"],"outputs":{"value":"left.start.value"}},{"id":"left.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"left.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"right.shape","op":"extrude@1","args":["right.start.value","right.dimension.height","right.dimension.width","right.dimension.z.value"],"outputs":{"shape":"right.shapeValue"},"params":{"frame":"right.local","axis":"y","section":"rectangle"}},{"id":"right.pose","op":"rigid@1","args":["right.on.host.pose.x.t0.value","right.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right.poseValue"},"params":{"from":"right.local","to":"right.seat"}},{"id":"right","op":"place@1","args":["right.shapeValue","right.world.value"],"outputs":{"placed":"right.placed"}},{"id":"right.start","op":"mul@1","args":["right.dimension.height","right.k.centre"],"outputs":{"value":"right.start.value"}},{"id":"right.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"right.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":"front.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"front.on.host.seat.y.t0.value"}},{"id":"front.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_5"],"outputs":{"value":"front.on.host.seat.z.t0.value"}},{"id":"front.on.host.pose.y.t0","op":"mul@1","args":["front.dimension.height","k.ratio.0_5"],"outputs":{"value":"front.on.host.pose.y.t0.value"}},{"id":"front.on.host.pose.z.t0","op":"mul@1","args":["front.dimension.depth","host.k.centre"],"outputs":{"value":"front.on.host.pose.z.t0.value"}},{"id":"front.seat.rigid","op":"rigid@1","args":["d.mm.0","front.on.host.seat.y.t0.value","front.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"front.seat.value"},"params":{"from":"front.seat","to":"host.local"}},{"id":"front.chain","op":"compose@1","args":["front.seat.value","front.poseValue"],"outputs":{"pose":"front.chain.value"}},{"id":"front.world","op":"compose@1","args":["host.chain.value","front.chain.value"],"outputs":{"pose":"front.world.value"}},{"id":"back.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"back.on.host.seat.y.t0.value"}},{"id":"back.on.host.seat.z.t0","op":"mul@1","args":["host.dimension.z.value","host.k.centre"],"outputs":{"value":"back.on.host.seat.z.t0.value"}},{"id":"back.on.host.pose.y.t0","op":"mul@1","args":["back.dimension.height","k.ratio.0_5"],"outputs":{"value":"back.on.host.pose.y.t0.value"}},{"id":"back.on.host.pose.z.t0","op":"mul@1","args":["back.dimension.depth","k.ratio.0_5"],"outputs":{"value":"back.on.host.pose.z.t0.value"}},{"id":"back.seat.rigid","op":"rigid@1","args":["d.mm.0","back.on.host.seat.y.t0.value","back.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"back.seat.value"},"params":{"from":"back.seat","to":"host.local"}},{"id":"back.chain","op":"compose@1","args":["back.seat.value","back.poseValue"],"outputs":{"pose":"back.chain.value"}},{"id":"back.world","op":"compose@1","args":["host.chain.value","back.chain.value"],"outputs":{"pose":"back.world.value"}},{"id":"left.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","host.k.centre"],"outputs":{"value":"left.on.host.seat.x.t0.value"}},{"id":"left.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"left.on.host.seat.y.t0.value"}},{"id":"left.on.host.pose.x.t0","op":"mul@1","args":["left.dimension.width","k.ratio.0_5"],"outputs":{"value":"left.on.host.pose.x.t0.value"}},{"id":"left.on.host.pose.y.t0","op":"mul@1","args":["left.dimension.height","k.ratio.0_5"],"outputs":{"value":"left.on.host.pose.y.t0.value"}},{"id":"left.seat.rigid","op":"rigid@1","args":["left.on.host.seat.x.t0.value","left.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left.seat.value"},"params":{"from":"left.seat","to":"host.local"}},{"id":"left.chain","op":"compose@1","args":["left.seat.value","left.poseValue"],"outputs":{"pose":"left.chain.value"}},{"id":"left.world","op":"compose@1","args":["host.chain.value","left.chain.value"],"outputs":{"pose":"left.world.value"}},{"id":"right.on.host.seat.x.t0","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"right.on.host.seat.x.t0.value"}},{"id":"right.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"right.on.host.seat.y.t0.value"}},{"id":"right.on.host.pose.x.t0","op":"mul@1","args":["right.dimension.width","host.k.centre"],"outputs":{"value":"right.on.host.pose.x.t0.value"}},{"id":"right.on.host.pose.y.t0","op":"mul@1","args":["right.dimension.height","k.ratio.0_5"],"outputs":{"value":"right.on.host.pose.y.t0.value"}},{"id":"right.seat.rigid","op":"rigid@1","args":["right.on.host.seat.x.t0.value","right.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right.seat.value"},"params":{"from":"right.seat","to":"host.local"}},{"id":"right.chain","op":"compose@1","args":["right.seat.value","right.poseValue"],"outputs":{"pose":"right.chain.value"}},{"id":"right.world","op":"compose@1","args":["host.chain.value","right.chain.value"],"outputs":{"pose":"right.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":6000,"host.size.y":50,"host.size.z":4000,"front.dimension.height":5,"front.dimension.depth":100,"back.dimension.height":5,"back.dimension.depth":100,"left.dimension.width":100,"left.dimension.height":5,"right.dimension.width":100,"right.dimension.height":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"front","material":{"token":"palette.tpl-f2c200"}},{"target":"back","material":{"token":"palette.tpl-f2c200"}},{"target":"left","material":{"token":"palette.tpl-f2c200"}},{"target":"right","material":{"token":"palette.tpl-f2c200"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"front","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"front"},"origin":{"align":{"z":"max"}}},{"id":"back","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"back"},"origin":{"align":{"z":"min"}}},{"id":"left","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"left"},"origin":{"align":{"x":"min"}}},{"id":"right","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"right"},"origin":{"align":{"x":"max"}}}]}
|
|
@@ -143,8 +143,7 @@
|
|
|
143
143
|
"face": "top"
|
|
144
144
|
},
|
|
145
145
|
"body1": {
|
|
146
|
-
"part": "{id}-front"
|
|
147
|
-
"face": "bottom"
|
|
146
|
+
"part": "{id}-front"
|
|
148
147
|
},
|
|
149
148
|
"origin": {
|
|
150
149
|
"align": {
|
|
@@ -163,8 +162,7 @@
|
|
|
163
162
|
"face": "top"
|
|
164
163
|
},
|
|
165
164
|
"body1": {
|
|
166
|
-
"part": "{id}-back"
|
|
167
|
-
"face": "bottom"
|
|
165
|
+
"part": "{id}-back"
|
|
168
166
|
},
|
|
169
167
|
"origin": {
|
|
170
168
|
"align": {
|
|
@@ -183,8 +181,7 @@
|
|
|
183
181
|
"face": "top"
|
|
184
182
|
},
|
|
185
183
|
"body1": {
|
|
186
|
-
"part": "{id}-left"
|
|
187
|
-
"face": "bottom"
|
|
184
|
+
"part": "{id}-left"
|
|
188
185
|
},
|
|
189
186
|
"origin": {
|
|
190
187
|
"align": {
|
|
@@ -203,8 +200,7 @@
|
|
|
203
200
|
"face": "top"
|
|
204
201
|
},
|
|
205
202
|
"body1": {
|
|
206
|
-
"part": "{id}-right"
|
|
207
|
-
"face": "bottom"
|
|
203
|
+
"part": "{id}-right"
|
|
208
204
|
},
|
|
209
205
|
"origin": {
|
|
210
206
|
"align": {
|
|
@@ -4,16 +4,16 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 4000, y: 3000, z: 6000 }, 'TPL_FOLDING_DOOR'))
|
|
6
6
|
m.add({ id: 'frame', kind: 'portal', dimensions: { width: 1200, height: 2400, depth: 150, jamb: 100, head: 100 } } as never)
|
|
7
|
-
.on('frame', '
|
|
7
|
+
.on('frame', 'host', 'front', { y: 'min' })
|
|
8
8
|
.follow('frame', 'x', 'host', 'x', 0.3)
|
|
9
9
|
.box('panel-1', 495, 2290, 30)
|
|
10
10
|
.follow('panel-1', 'x', 'frame', 'x', 0.5, -105)
|
|
11
|
-
.on('panel-1', '
|
|
11
|
+
.on('panel-1', 'frame', 'opening-left', { y: 'min', z: 'max' }, 5)
|
|
12
12
|
.colour('panel-1', 'leaf', '#5c7c96')
|
|
13
13
|
.moves('panel-1', { type: 'revolute', axis: 'Y', lower: -80, upper: 0, state: 'fold' })
|
|
14
14
|
.box('panel-2', 495, 2290, 30)
|
|
15
15
|
.follow('panel-2', 'x', 'panel-1', 'x')
|
|
16
|
-
.on('panel-2', '
|
|
16
|
+
.on('panel-2', 'panel-1', 'right', { y: 'min', z: 'max' })
|
|
17
17
|
.colour('panel-2', 'leaf', '#5c7c96')
|
|
18
18
|
.moves('panel-2', { type: 'revolute', axis: 'Y', mimic: { joint: 'panel-1', multiplier: -2 } })
|
|
19
19
|
return m.asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_FOLDING_DOOR","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":"frame.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.jamb","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.head","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-1.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-2.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"fold","unit":"deg","min":-80,"max":0,"role":"state"}],"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":"frame.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_3","unit":"ratio","value":0.3},{"id":"panel-1.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm._105","unit":"mm","value":-105},{"id":"d.mm.5","unit":"mm","value":5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"panel-2.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._2","unit":"ratio","value":-2}],"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.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.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":"frame.shape","op":"extrude@1","args":["frame.start.value","frame.dimension.depth","frame.dimension.x.value","frame.dimension.height","frame.dimension.jamb","frame.dimension.head"],"outputs":{"shape":"frame.shapeValue"},"params":{"frame":"frame.local","axis":"z","section":"portal"}},{"id":"frame.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","frame.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"frame.poseValue"},"params":{"from":"frame.local","to":"frame.seat"}},{"id":"frame","op":"place@1","args":["frame.shapeValue","frame.world.value"],"outputs":{"placed":"frame.placed"}},{"id":"frame.start","op":"mul@1","args":["frame.dimension.depth","frame.k.centre"],"outputs":{"value":"frame.start.value"}},{"id":"frame.dimension.x","op":"mul@1","args":["frame.x.follows.times.value","k.ratio.1"],"outputs":{"value":"frame.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"frame.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_3"],"outputs":{"value":"frame.x.follows.times.value"}},{"id":"panel-1.shape","op":"extrude@1","args":["panel-1.start.value","panel-1.dimension.height","panel-1.dimension.x.value","panel-1.dimension.depth"],"outputs":{"shape":"panel-1.shapeValue"},"params":{"frame":"panel-1.local","axis":"y","section":"rectangle"}},{"id":"panel-1.pose","op":"rigid@1","args":["panel-1.on.frame.along.x.1.sum.value","panel-1.on.frame.own-edge.y.0.times.value","panel-1.on.frame.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-1.poseValue"},"params":{"from":"panel-1.local","to":"panel-1.seat"}},{"id":"panel-1","op":"place@1","args":["panel-1.shapeValue","panel-1.world.value"],"outputs":{"placed":"panel-1.placed"}},{"id":"panel-1.start","op":"mul@1","args":["panel-1.dimension.height","panel-1.k.centre"],"outputs":{"value":"panel-1.start.value"}},{"id":"panel-1.dimension.x","op":"mul@1","args":["panel-1.x.follows.plus.value","k.ratio.1"],"outputs":{"value":"panel-1.dimension.x.value"}},{"id":"panel-1.x.follows.times","op":"mul@1","args":["frame.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-1.x.follows.times.value"}},{"id":"panel-1.x.follows.plus","op":"add@1","args":["panel-1.x.follows.times.value","d.mm._105"],"outputs":{"value":"panel-1.x.follows.plus.value"}},{"id":"panel-2.shape","op":"extrude@1","args":["panel-2.start.value","panel-2.dimension.height","panel-2.dimension.x.value","panel-2.dimension.depth"],"outputs":{"shape":"panel-2.shapeValue"},"params":{"frame":"panel-2.local","axis":"y","section":"rectangle"}},{"id":"panel-2.pose","op":"rigid@1","args":["panel-2.on.panel-1.along.x.1.sum.value","panel-2.on.panel-1.own-edge.y.0.times.value","panel-2.on.panel-1.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-2.poseValue"},"params":{"from":"panel-2.local","to":"panel-2.seat"}},{"id":"panel-2","op":"place@1","args":["panel-2.shapeValue","panel-2.world.value"],"outputs":{"placed":"panel-2.placed"}},{"id":"panel-2.start","op":"mul@1","args":["panel-2.dimension.height","panel-2.k.centre"],"outputs":{"value":"panel-2.start.value"}},{"id":"panel-2.dimension.x","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.1"],"outputs":{"value":"panel-2.dimension.x.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":"frame.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"frame.on.host.seat.z.0.times.value"}},{"id":"frame.on.host.along.z.0.times","op":"mul@1","args":["frame.dimension.depth","k.ratio.0_5"],"outputs":{"value":"frame.on.host.along.z.0.times.value"}},{"id":"frame.on.host.along.z.1.sum","op":"add@1","args":["frame.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"frame.on.host.along.z.1.sum.value"}},{"id":"frame.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"frame.on.host.edge.y.0.times.value"}},{"id":"frame.seat.rigid","op":"rigid@1","args":["d.mm.0","frame.on.host.edge.y.0.times.value","frame.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"frame.seat.value"},"params":{"from":"frame.seat","to":"host.local"}},{"id":"frame.chain","op":"compose@1","args":["frame.seat.value","frame.poseValue"],"outputs":{"pose":"frame.chain.value"}},{"id":"frame.world","op":"compose@1","args":["host.chain.value","frame.chain.value"],"outputs":{"pose":"frame.world.value"}},{"id":"panel-1.on.frame.seat.x.0.times","op":"mul@1","args":["frame.dimension.x.value","host.k.centre"],"outputs":{"value":"panel-1.on.frame.seat.x.0.times.value"}},{"id":"panel-1.on.frame.seat.x.1.sum","op":"add@1","args":["panel-1.on.frame.seat.x.0.times.value","frame.dimension.jamb"],"outputs":{"value":"panel-1.on.frame.seat.x.1.sum.value"}},{"id":"panel-1.on.frame.along.x.0.times","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.along.x.0.times.value"}},{"id":"panel-1.on.frame.along.x.1.sum","op":"add@1","args":["panel-1.on.frame.along.x.0.times.value","d.mm.5"],"outputs":{"value":"panel-1.on.frame.along.x.1.sum.value"}},{"id":"panel-1.on.frame.own-edge.y.0.times","op":"mul@1","args":["panel-1.dimension.height","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.own-edge.y.0.times.value"}},{"id":"panel-1.on.frame.edge.z.0.times","op":"mul@1","args":["frame.dimension.depth","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.edge.z.0.times.value"}},{"id":"panel-1.on.frame.own-edge.z.0.times","op":"mul@1","args":["panel-1.dimension.depth","host.k.centre"],"outputs":{"value":"panel-1.on.frame.own-edge.z.0.times.value"}},{"id":"panel-1.seat.rigid","op":"rigid@1","args":["panel-1.on.frame.seat.x.1.sum.value","d.mm.0","panel-1.on.frame.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-1.seat.value"},"params":{"from":"panel-1.joint","to":"frame.local"}},{"id":"panel-1.chain","op":"compose@1","args":["panel-1.seat.value","panel-1.turned.value"],"outputs":{"pose":"panel-1.chain.value"}},{"id":"panel-1.world","op":"compose@1","args":["frame.world.value","panel-1.chain.value"],"outputs":{"pose":"panel-1.world.value"}},{"id":"panel-1.motion","op":"axis-turn@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","fold"],"outputs":{"pose":"panel-1.motion.value"},"params":{"from":"panel-1.seat","to":"panel-1.joint"}},{"id":"panel-1.turned","op":"compose@1","args":["panel-1.motion.value","panel-1.poseValue"],"outputs":{"pose":"panel-1.turned.value"}},{"id":"panel-2.on.panel-1.seat.x.0.times","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.seat.x.0.times.value"}},{"id":"panel-2.on.panel-1.along.x.0.times","op":"mul@1","args":["panel-2.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.along.x.0.times.value"}},{"id":"panel-2.on.panel-1.along.x.1.sum","op":"add@1","args":["panel-2.on.panel-1.along.x.0.times.value","d.mm.0"],"outputs":{"value":"panel-2.on.panel-1.along.x.1.sum.value"}},{"id":"panel-2.on.panel-1.edge.y.0.times","op":"mul@1","args":["panel-1.dimension.height","host.k.centre"],"outputs":{"value":"panel-2.on.panel-1.edge.y.0.times.value"}},{"id":"panel-2.on.panel-1.own-edge.y.0.times","op":"mul@1","args":["panel-2.dimension.height","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.own-edge.y.0.times.value"}},{"id":"panel-2.on.panel-1.edge.z.0.times","op":"mul@1","args":["panel-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.edge.z.0.times.value"}},{"id":"panel-2.on.panel-1.own-edge.z.0.times","op":"mul@1","args":["panel-2.dimension.depth","host.k.centre"],"outputs":{"value":"panel-2.on.panel-1.own-edge.z.0.times.value"}},{"id":"panel-2.seat.rigid","op":"rigid@1","args":["panel-2.on.panel-1.seat.x.0.times.value","panel-2.on.panel-1.edge.y.0.times.value","panel-2.on.panel-1.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-2.seat.value"},"params":{"from":"panel-2.joint","to":"panel-1.local"}},{"id":"panel-2.chain","op":"compose@1","args":["panel-2.seat.value","panel-2.turned.value"],"outputs":{"pose":"panel-2.chain.value"}},{"id":"panel-2.world","op":"compose@1","args":["panel-1.world.value","panel-2.chain.value"],"outputs":{"pose":"panel-2.world.value"}},{"id":"panel-2.motion.mimic","op":"mul@1","args":["fold","k.ratio._2"],"outputs":{"value":"panel-2.motion.mimic.value"}},{"id":"panel-2.motion","op":"axis-turn@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","panel-2.motion.mimic.value"],"outputs":{"pose":"panel-2.motion.value"},"params":{"from":"panel-2.seat","to":"panel-2.joint"}},{"id":"panel-2.turned","op":"compose@1","args":["panel-2.motion.value","panel-2.poseValue"],"outputs":{"pose":"panel-2.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":6000,"frame.dimension.height":2400,"frame.dimension.depth":150,"frame.dimension.jamb":100,"frame.dimension.head":100,"panel-1.dimension.height":2290,"panel-1.dimension.depth":30,"panel-2.dimension.height":2290,"panel-2.dimension.depth":30},"stateDefaults":{"fold":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-5c7c96":"#5c7c96"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"frame","material":{"token":"palette.primary"}},{"target":"panel-1","material":{"token":"palette.tpl-5c7c96"}},{"target":"panel-2","material":{"token":"palette.tpl-5c7c96"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"frame","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"frame","face":"back"},"origin":{"align":{"y":"min"}}},{"id":"panel-1","type":"revolute","body0":{"part":"frame","face":"opening-left"},"body1":{"part":"panel-1","face":"left"},"origin":{"gap":5,"align":{"y":"min","z":"max"}},"axis":"Y","lowerLimit":-80,"upperLimit":0,"state":{"id":"fold"}},{"id":"panel-2","type":"revolute","body0":{"part":"panel-1","face":"right"},"body1":{"part":"panel-2","face":"left"},"origin":{"align":{"y":"min","z":"max"}},"axis":"Y","mimic":{"joint":"panel-1","multiplier":-2}}]}
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_FOLDING_DOOR","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":"frame.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.jamb","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"frame.dimension.head","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-1.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-2.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"panel-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"fold","unit":"deg","min":-80,"max":0,"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":"frame.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_3","unit":"ratio","value":0.3},{"id":"panel-1.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm._105","unit":"mm","value":-105},{"id":"d.mm.5","unit":"mm","value":5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"panel-2.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._2","unit":"ratio","value":-2}],"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.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":"frame.shape","op":"extrude@1","args":["frame.start.value","frame.dimension.depth","frame.dimension.x.value","frame.dimension.height","frame.dimension.jamb","frame.dimension.head"],"outputs":{"shape":"frame.shapeValue"},"params":{"frame":"frame.local","axis":"z","section":"portal"}},{"id":"frame.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","frame.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"frame.poseValue"},"params":{"from":"frame.local","to":"frame.seat"}},{"id":"frame","op":"place@1","args":["frame.shapeValue","frame.world.value"],"outputs":{"placed":"frame.placed"}},{"id":"frame.start","op":"mul@1","args":["frame.dimension.depth","frame.k.centre"],"outputs":{"value":"frame.start.value"}},{"id":"frame.dimension.x","op":"mul@1","args":["frame.x.follows.times.value","k.ratio.1"],"outputs":{"value":"frame.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"frame.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_3"],"outputs":{"value":"frame.x.follows.times.value"}},{"id":"panel-1.shape","op":"extrude@1","args":["panel-1.start.value","panel-1.dimension.height","panel-1.dimension.x.value","panel-1.dimension.depth"],"outputs":{"shape":"panel-1.shapeValue"},"params":{"frame":"panel-1.local","axis":"y","section":"rectangle"}},{"id":"panel-1.pose","op":"rigid@1","args":["panel-1.on.frame.pose.x.s0.value","panel-1.on.frame.pose.y.t0.value","panel-1.on.frame.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-1.poseValue"},"params":{"from":"panel-1.local","to":"panel-1.seat"}},{"id":"panel-1","op":"place@1","args":["panel-1.shapeValue","panel-1.world.value"],"outputs":{"placed":"panel-1.placed"}},{"id":"panel-1.start","op":"mul@1","args":["panel-1.dimension.height","panel-1.k.centre"],"outputs":{"value":"panel-1.start.value"}},{"id":"panel-1.dimension.x","op":"mul@1","args":["panel-1.x.follows.plus.value","k.ratio.1"],"outputs":{"value":"panel-1.dimension.x.value"}},{"id":"panel-1.x.follows.times","op":"mul@1","args":["frame.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-1.x.follows.times.value"}},{"id":"panel-1.x.follows.plus","op":"add@1","args":["panel-1.x.follows.times.value","d.mm._105"],"outputs":{"value":"panel-1.x.follows.plus.value"}},{"id":"panel-2.shape","op":"extrude@1","args":["panel-2.start.value","panel-2.dimension.height","panel-2.dimension.x.value","panel-2.dimension.depth"],"outputs":{"shape":"panel-2.shapeValue"},"params":{"frame":"panel-2.local","axis":"y","section":"rectangle"}},{"id":"panel-2.pose","op":"rigid@1","args":["panel-2.on.panel-1.pose.x.t0.value","panel-2.on.panel-1.pose.y.t0.value","panel-2.on.panel-1.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-2.poseValue"},"params":{"from":"panel-2.local","to":"panel-2.seat"}},{"id":"panel-2","op":"place@1","args":["panel-2.shapeValue","panel-2.world.value"],"outputs":{"placed":"panel-2.placed"}},{"id":"panel-2.start","op":"mul@1","args":["panel-2.dimension.height","panel-2.k.centre"],"outputs":{"value":"panel-2.start.value"}},{"id":"panel-2.dimension.x","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.1"],"outputs":{"value":"panel-2.dimension.x.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":"frame.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"frame.on.host.seat.y.t0.value"}},{"id":"frame.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"frame.on.host.seat.z.t0.value"}},{"id":"frame.on.host.pose.z.t0","op":"mul@1","args":["frame.dimension.depth","k.ratio.0_5"],"outputs":{"value":"frame.on.host.pose.z.t0.value"}},{"id":"frame.seat.rigid","op":"rigid@1","args":["d.mm.0","frame.on.host.seat.y.t0.value","frame.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"frame.seat.value"},"params":{"from":"frame.seat","to":"host.local"}},{"id":"frame.chain","op":"compose@1","args":["frame.seat.value","frame.poseValue"],"outputs":{"pose":"frame.chain.value"}},{"id":"frame.world","op":"compose@1","args":["host.chain.value","frame.chain.value"],"outputs":{"pose":"frame.world.value"}},{"id":"panel-1.on.frame.seat.x.t0","op":"mul@1","args":["frame.dimension.x.value","host.k.centre"],"outputs":{"value":"panel-1.on.frame.seat.x.t0.value"}},{"id":"panel-1.on.frame.seat.x.s0","op":"add@1","args":["panel-1.on.frame.seat.x.t0.value","frame.dimension.jamb"],"outputs":{"value":"panel-1.on.frame.seat.x.s0.value"}},{"id":"panel-1.on.frame.seat.z.t0","op":"mul@1","args":["frame.dimension.depth","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.seat.z.t0.value"}},{"id":"panel-1.on.frame.pose.x.t1","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.pose.x.t1.value"}},{"id":"panel-1.on.frame.pose.x.s0","op":"add@1","args":["d.mm.5","panel-1.on.frame.pose.x.t1.value"],"outputs":{"value":"panel-1.on.frame.pose.x.s0.value"}},{"id":"panel-1.on.frame.pose.y.t0","op":"mul@1","args":["panel-1.dimension.height","k.ratio.0_5"],"outputs":{"value":"panel-1.on.frame.pose.y.t0.value"}},{"id":"panel-1.on.frame.pose.z.t0","op":"mul@1","args":["panel-1.dimension.depth","host.k.centre"],"outputs":{"value":"panel-1.on.frame.pose.z.t0.value"}},{"id":"panel-1.seat.rigid","op":"rigid@1","args":["panel-1.on.frame.seat.x.s0.value","d.mm.0","panel-1.on.frame.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-1.seat.value"},"params":{"from":"panel-1.joint","to":"frame.local"}},{"id":"panel-1.chain","op":"compose@1","args":["panel-1.seat.value","panel-1.turned.value"],"outputs":{"pose":"panel-1.chain.value"}},{"id":"panel-1.world","op":"compose@1","args":["frame.world.value","panel-1.chain.value"],"outputs":{"pose":"panel-1.world.value"}},{"id":"panel-1.motion","op":"axis-turn@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","fold"],"outputs":{"pose":"panel-1.motion.value"},"params":{"from":"panel-1.seat","to":"panel-1.joint"}},{"id":"panel-1.turned","op":"compose@1","args":["panel-1.motion.value","panel-1.poseValue"],"outputs":{"pose":"panel-1.turned.value"}},{"id":"panel-2.on.panel-1.seat.x.t0","op":"mul@1","args":["panel-1.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.seat.x.t0.value"}},{"id":"panel-2.on.panel-1.seat.y.t0","op":"mul@1","args":["panel-1.dimension.height","host.k.centre"],"outputs":{"value":"panel-2.on.panel-1.seat.y.t0.value"}},{"id":"panel-2.on.panel-1.seat.z.t0","op":"mul@1","args":["panel-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.seat.z.t0.value"}},{"id":"panel-2.on.panel-1.pose.x.t0","op":"mul@1","args":["panel-2.dimension.x.value","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.pose.x.t0.value"}},{"id":"panel-2.on.panel-1.pose.y.t0","op":"mul@1","args":["panel-2.dimension.height","k.ratio.0_5"],"outputs":{"value":"panel-2.on.panel-1.pose.y.t0.value"}},{"id":"panel-2.on.panel-1.pose.z.t0","op":"mul@1","args":["panel-2.dimension.depth","host.k.centre"],"outputs":{"value":"panel-2.on.panel-1.pose.z.t0.value"}},{"id":"panel-2.seat.rigid","op":"rigid@1","args":["panel-2.on.panel-1.seat.x.t0.value","panel-2.on.panel-1.seat.y.t0.value","panel-2.on.panel-1.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"panel-2.seat.value"},"params":{"from":"panel-2.joint","to":"panel-1.local"}},{"id":"panel-2.chain","op":"compose@1","args":["panel-2.seat.value","panel-2.turned.value"],"outputs":{"pose":"panel-2.chain.value"}},{"id":"panel-2.world","op":"compose@1","args":["panel-1.world.value","panel-2.chain.value"],"outputs":{"pose":"panel-2.world.value"}},{"id":"panel-2.motion.mimic","op":"mul@1","args":["fold","k.ratio._2"],"outputs":{"value":"panel-2.motion.mimic.value"}},{"id":"panel-2.motion","op":"axis-turn@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","panel-2.motion.mimic.value"],"outputs":{"pose":"panel-2.motion.value"},"params":{"from":"panel-2.seat","to":"panel-2.joint"}},{"id":"panel-2.turned","op":"compose@1","args":["panel-2.motion.value","panel-2.poseValue"],"outputs":{"pose":"panel-2.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":6000,"frame.dimension.height":2400,"frame.dimension.depth":150,"frame.dimension.jamb":100,"frame.dimension.head":100,"panel-1.dimension.height":2290,"panel-1.dimension.depth":30,"panel-2.dimension.height":2290,"panel-2.dimension.depth":30},"stateDefaults":{"fold":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-5c7c96":"#5c7c96"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"frame","material":{"token":"palette.primary"}},{"target":"panel-1","material":{"token":"palette.tpl-5c7c96"}},{"target":"panel-2","material":{"token":"palette.tpl-5c7c96"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"frame","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"frame"},"origin":{"align":{"y":"min"}}},{"id":"panel-1","type":"revolute","body0":{"part":"frame","face":"opening-left"},"body1":{"part":"panel-1"},"origin":{"gap":5,"align":{"y":"min","z":"max"}},"axis":"Y","lowerLimit":-80,"upperLimit":0,"state":{"id":"fold"}},{"id":"panel-2","type":"revolute","body0":{"part":"panel-1","face":"right"},"body1":{"part":"panel-2"},"origin":{"align":{"y":"min","z":"max"}},"axis":"Y","mimic":{"joint":"panel-1","multiplier":-2}}]}
|
|
@@ -119,8 +119,7 @@
|
|
|
119
119
|
"face": "front"
|
|
120
120
|
},
|
|
121
121
|
"body1": {
|
|
122
|
-
"part": "{id}-frame"
|
|
123
|
-
"face": "back"
|
|
122
|
+
"part": "{id}-frame"
|
|
124
123
|
},
|
|
125
124
|
"origin": {
|
|
126
125
|
"align": {
|
|
@@ -139,8 +138,7 @@
|
|
|
139
138
|
"face": "opening-left"
|
|
140
139
|
},
|
|
141
140
|
"body1": {
|
|
142
|
-
"part": "{id}-panel-1"
|
|
143
|
-
"face": "left"
|
|
141
|
+
"part": "{id}-panel-1"
|
|
144
142
|
},
|
|
145
143
|
"origin": {
|
|
146
144
|
"gap": 5,
|
|
@@ -167,8 +165,7 @@
|
|
|
167
165
|
"face": "right"
|
|
168
166
|
},
|
|
169
167
|
"body1": {
|
|
170
|
-
"part": "{id}-panel-2"
|
|
171
|
-
"face": "left"
|
|
168
|
+
"part": "{id}-panel-2"
|
|
172
169
|
},
|
|
173
170
|
"origin": {
|
|
174
171
|
"align": {
|