@things-factory/figure-service 10.1.198 → 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 +20 -40
- 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 +16 -32
- 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
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "top"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-station"
|
|
55
|
-
"face": "bottom"
|
|
54
|
+
"part": "{id}-station"
|
|
56
55
|
},
|
|
57
56
|
"origin": {
|
|
58
57
|
"align": {
|
|
@@ -71,8 +70,7 @@
|
|
|
71
70
|
"face": "front"
|
|
72
71
|
},
|
|
73
72
|
"body1": {
|
|
74
|
-
"part": "{id}-contact"
|
|
75
|
-
"face": "back"
|
|
73
|
+
"part": "{id}-contact"
|
|
76
74
|
},
|
|
77
75
|
"origin": {
|
|
78
76
|
"align": {
|
|
@@ -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: 18000, y: 50, z: 8000 }, 'TPL_COLUMN_ROW'))
|
|
6
6
|
m.box('column', 400, 4000, 400)
|
|
7
|
-
.on('column', '
|
|
7
|
+
.on('column', 'host', 'top', { z: 'max' })
|
|
8
8
|
.colour('column', 'palette.column', '#b8bfc6')
|
|
9
9
|
.do({ kind: 'make-repeat', part: 'column', axis: 'x', pitch: 6000, narrowRange: true })
|
|
10
10
|
return m.asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_COLUMN_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":"column.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"column.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"column.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_COLUMN_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":"column.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"column.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"column.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":"column.k.centre","unit":"ratio","value":-0.5},{"id":"limit.count.100","unit":"count","value":100},{"id":"d.mm.6000","unit":"mm","value":6000}],"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":"column.shape","op":"extrude@1","args":["column.start.value","column.dimension.height","column.dimension.width","column.dimension.depth"],"outputs":{"shape":"column.shapeValue"},"params":{"frame":"column.local","axis":"y","section":"rectangle"}},{"id":"column.pose","op":"rigid@1","args":["d.mm.0","column.on.host.pose.y.t0.value","column.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"column.poseValue"},"params":{"from":"column.local","to":"column.seat"}},{"id":"column","op":"member@1","args":["column.shapeValue","column.poseValue"],"outputs":{"placed":"column.placed"}},{"id":"column.start","op":"mul@1","args":["column.dimension.height","column.k.centre"],"outputs":{"value":"column.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":"column.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"column.on.host.seat.y.t0.value"}},{"id":"column.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"column.on.host.seat.z.t0.value"}},{"id":"column.on.host.pose.y.t0","op":"mul@1","args":["column.dimension.height","k.ratio.0_5"],"outputs":{"value":"column.on.host.pose.y.t0.value"}},{"id":"column.on.host.pose.z.t0","op":"mul@1","args":["column.dimension.depth","host.k.centre"],"outputs":{"value":"column.on.host.pose.z.t0.value"}},{"id":"column.seat.rigid","op":"rigid@1","args":["column.row.start.0.times.value","column.on.host.seat.y.t0.value","column.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"column.seat.value"},"params":{"from":"column.seat","to":"host.local"}},{"id":"column.row.start.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"column.row.start.0.times.value"}},{"id":"column.row.length.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"column.row.length.0.times.value"}},{"id":"column.row.length.1.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"column.row.length.1.times.value"}},{"id":"column.row.length.1.sum","op":"add@1","args":["column.row.length.0.times.value","column.row.length.1.times.value"],"outputs":{"value":"column.row.length.1.sum.value"}},{"id":"column.layout","op":"fit-pitch@1","args":["column.row.length.1.sum.value","d.mm.0","d.mm.0","column.dimension.width","d.mm.6000","k.ratio.0_5","limit.count.100"],"outputs":{"layout":"column.layout.value"}},{"id":"column.assembly","op":"assembly@1","args":["column.placed"],"outputs":{"assembly":"column.assembly.value"}},{"id":"column.row","op":"compose@1","args":["host.chain.value","column.seat.value"],"outputs":{"pose":"column.row.value"}},{"id":"column.repeat","op":"repeat@1","args":["column.layout.value","column.assembly.value","column.row.value"],"outputs":{"collection":"column.repeat.value"},"params":{"axis":"x"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":18000,"host.size.y":50,"host.size.z":8000,"column.dimension.width":400,"column.dimension.height":4000,"column.dimension.depth":400},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-b8bfc6":"#b8bfc6"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"column","material":{"token":"palette.tpl-b8bfc6"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"column","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"column"},"origin":{"align":{"z":"max"}},"repeat":{"axis":"X","pitch":6000}}]}
|
|
@@ -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: 1600, y: 1400, z: 1000 }, 'TPL_CONTROL_CABINET'))
|
|
6
6
|
m.box('cabinet', 300, 1200, 800)
|
|
7
|
-
.on('cabinet', '
|
|
7
|
+
.on('cabinet', 'host', 'right', { y: 'min' })
|
|
8
8
|
.colour('cabinet', 'palette.cabinet', '#8795a3')
|
|
9
9
|
.box('door', 20, 1180, 780)
|
|
10
|
-
.on('door', '
|
|
10
|
+
.on('door', 'cabinet', 'right', { z: 'max' })
|
|
11
11
|
.colour('door', 'palette.leaf', '#5c7c96')
|
|
12
12
|
.moves('door', { type: 'revolute', axis: 'Y', lower: 0, upper: 100, state: 'open' })
|
|
13
13
|
return m.asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_CONTROL_CABINET","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":"cabinet.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cabinet.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cabinet.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"open","unit":"deg","min":0,"max":100,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_CONTROL_CABINET","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":"cabinet.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cabinet.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"cabinet.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"door.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"open","unit":"deg","min":0,"max":100,"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":"cabinet.k.centre","unit":"ratio","value":-0.5},{"id":"door.k.centre","unit":"ratio","value":-0.5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"axis.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"cabinet.shape","op":"extrude@1","args":["cabinet.start.value","cabinet.dimension.height","cabinet.dimension.width","cabinet.dimension.depth"],"outputs":{"shape":"cabinet.shapeValue"},"params":{"frame":"cabinet.local","axis":"y","section":"rectangle"}},{"id":"cabinet.pose","op":"rigid@1","args":["cabinet.on.host.pose.x.t0.value","cabinet.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"cabinet.poseValue"},"params":{"from":"cabinet.local","to":"cabinet.seat"}},{"id":"cabinet","op":"place@1","args":["cabinet.shapeValue","cabinet.world.value"],"outputs":{"placed":"cabinet.placed"}},{"id":"cabinet.start","op":"mul@1","args":["cabinet.dimension.height","cabinet.k.centre"],"outputs":{"value":"cabinet.start.value"}},{"id":"door.shape","op":"extrude@1","args":["door.start.value","door.dimension.height","door.dimension.width","door.dimension.depth"],"outputs":{"shape":"door.shapeValue"},"params":{"frame":"door.local","axis":"y","section":"rectangle"}},{"id":"door.pose","op":"rigid@1","args":["door.on.cabinet.pose.x.t0.value","d.mm.0","door.on.cabinet.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"door.poseValue"},"params":{"from":"door.local","to":"door.seat"}},{"id":"door","op":"place@1","args":["door.shapeValue","door.world.value"],"outputs":{"placed":"door.placed"}},{"id":"door.start","op":"mul@1","args":["door.dimension.height","door.k.centre"],"outputs":{"value":"door.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":"cabinet.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.seat.x.t0.value"}},{"id":"cabinet.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"cabinet.on.host.seat.y.t0.value"}},{"id":"cabinet.on.host.pose.x.t0","op":"mul@1","args":["cabinet.dimension.width","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.pose.x.t0.value"}},{"id":"cabinet.on.host.pose.y.t0","op":"mul@1","args":["cabinet.dimension.height","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.pose.y.t0.value"}},{"id":"cabinet.seat.rigid","op":"rigid@1","args":["cabinet.on.host.seat.x.t0.value","cabinet.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"cabinet.seat.value"},"params":{"from":"cabinet.seat","to":"host.local"}},{"id":"cabinet.chain","op":"compose@1","args":["cabinet.seat.value","cabinet.poseValue"],"outputs":{"pose":"cabinet.chain.value"}},{"id":"cabinet.world","op":"compose@1","args":["host.chain.value","cabinet.chain.value"],"outputs":{"pose":"cabinet.world.value"}},{"id":"door.on.cabinet.seat.x.t0","op":"mul@1","args":["cabinet.dimension.width","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.seat.x.t0.value"}},{"id":"door.on.cabinet.seat.z.t0","op":"mul@1","args":["cabinet.dimension.depth","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.seat.z.t0.value"}},{"id":"door.on.cabinet.pose.x.t0","op":"mul@1","args":["door.dimension.width","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.pose.x.t0.value"}},{"id":"door.on.cabinet.pose.z.t0","op":"mul@1","args":["door.dimension.depth","host.k.centre"],"outputs":{"value":"door.on.cabinet.pose.z.t0.value"}},{"id":"door.seat.rigid","op":"rigid@1","args":["door.on.cabinet.seat.x.t0.value","d.mm.0","door.on.cabinet.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"door.seat.value"},"params":{"from":"door.joint","to":"cabinet.local"}},{"id":"door.chain","op":"compose@1","args":["door.seat.value","door.turned.value"],"outputs":{"pose":"door.chain.value"}},{"id":"door.world","op":"compose@1","args":["cabinet.world.value","door.chain.value"],"outputs":{"pose":"door.world.value"}},{"id":"door.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.1","axis.ratio.0","open"],"outputs":{"pose":"door.motion.value"},"params":{"from":"door.seat","to":"door.joint"}},{"id":"door.turned","op":"compose@1","args":["door.motion.value","door.poseValue"],"outputs":{"pose":"door.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"cabinet.dimension.width":300,"cabinet.dimension.height":1200,"cabinet.dimension.depth":800,"door.dimension.width":20,"door.dimension.height":1180,"door.dimension.depth":780},"stateDefaults":{"open":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-8795a3":"#8795a3","palette.tpl-5c7c96":"#5c7c96"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"cabinet","material":{"token":"palette.tpl-8795a3"}},{"target":"door","material":{"token":"palette.tpl-5c7c96"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"cabinet","type":"fixed","body0":{"part":"host","face":"right"},"body1":{"part":"cabinet"},"origin":{"align":{"y":"min"}}},{"id":"door","type":"revolute","body0":{"part":"cabinet","face":"right"},"body1":{"part":"door"},"origin":{"align":{"z":"max"}},"axis":"Y","lowerLimit":0,"upperLimit":100,"state":{"id":"open"}}]}
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "right"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-cabinet"
|
|
55
|
-
"face": "left"
|
|
54
|
+
"part": "{id}-cabinet"
|
|
56
55
|
},
|
|
57
56
|
"origin": {
|
|
58
57
|
"align": {
|
|
@@ -71,8 +70,7 @@
|
|
|
71
70
|
"face": "right"
|
|
72
71
|
},
|
|
73
72
|
"body1": {
|
|
74
|
-
"part": "{id}-door"
|
|
75
|
-
"face": "left"
|
|
73
|
+
"part": "{id}-door"
|
|
76
74
|
},
|
|
77
75
|
"origin": {
|
|
78
76
|
"align": {
|
|
@@ -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: 3000, y: 700, z: 800 }, 'TPL_CONVEYOR_SKIRTS'))
|
|
6
|
-
for (const [s,
|
|
7
|
-
m.box(s, 3000, 700, 10).follow(s, 'x', 'host', 'x').follow(s, 'y', 'host', 'y').on(s,
|
|
6
|
+
for (const [s, onto] of [['skirt-front', 'front'], ['skirt-back', 'back']] as const)
|
|
7
|
+
m.box(s, 3000, 700, 10).follow(s, 'x', 'host', 'x').follow(s, 'y', 'host', 'y').on(s, 'host', onto).colour(s, 'panel', '#4f5d6b')
|
|
8
8
|
return m.asset
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_CONVEYOR_SKIRTS","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":"skirt-front.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"skirt-back.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_CONVEYOR_SKIRTS","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":"skirt-front.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"skirt-back.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":"skirt-front.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"skirt-back.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.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":"skirt-front.shape","op":"extrude@1","args":["skirt-front.start.value","skirt-front.dimension.y.value","skirt-front.dimension.x.value","skirt-front.dimension.depth"],"outputs":{"shape":"skirt-front.shapeValue"},"params":{"frame":"skirt-front.local","axis":"y","section":"rectangle"}},{"id":"skirt-front.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-front.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"skirt-front.poseValue"},"params":{"from":"skirt-front.local","to":"skirt-front.seat"}},{"id":"skirt-front","op":"place@1","args":["skirt-front.shapeValue","skirt-front.world.value"],"outputs":{"placed":"skirt-front.placed"}},{"id":"skirt-front.start","op":"mul@1","args":["skirt-front.dimension.y.value","skirt-front.k.centre"],"outputs":{"value":"skirt-front.start.value"}},{"id":"skirt-front.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"skirt-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":"skirt-front.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"skirt-front.dimension.y.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"skirt-back.shape","op":"extrude@1","args":["skirt-back.start.value","skirt-back.dimension.y.value","skirt-back.dimension.x.value","skirt-back.dimension.depth"],"outputs":{"shape":"skirt-back.shapeValue"},"params":{"frame":"skirt-back.local","axis":"y","section":"rectangle"}},{"id":"skirt-back.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-back.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"skirt-back.poseValue"},"params":{"from":"skirt-back.local","to":"skirt-back.seat"}},{"id":"skirt-back","op":"place@1","args":["skirt-back.shapeValue","skirt-back.world.value"],"outputs":{"placed":"skirt-back.placed"}},{"id":"skirt-back.start","op":"mul@1","args":["skirt-back.dimension.y.value","skirt-back.k.centre"],"outputs":{"value":"skirt-back.start.value"}},{"id":"skirt-back.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"skirt-back.dimension.x.value"}},{"id":"skirt-back.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"skirt-back.dimension.y.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":"skirt-front.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"skirt-front.on.host.seat.z.t0.value"}},{"id":"skirt-front.on.host.pose.z.t0","op":"mul@1","args":["skirt-front.dimension.depth","k.ratio.0_5"],"outputs":{"value":"skirt-front.on.host.pose.z.t0.value"}},{"id":"skirt-front.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-front.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"skirt-front.seat.value"},"params":{"from":"skirt-front.seat","to":"host.local"}},{"id":"skirt-front.chain","op":"compose@1","args":["skirt-front.seat.value","skirt-front.poseValue"],"outputs":{"pose":"skirt-front.chain.value"}},{"id":"skirt-front.world","op":"compose@1","args":["host.chain.value","skirt-front.chain.value"],"outputs":{"pose":"skirt-front.world.value"}},{"id":"skirt-back.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"skirt-back.on.host.seat.z.t0.value"}},{"id":"skirt-back.on.host.pose.z.t0","op":"mul@1","args":["skirt-back.dimension.depth","host.k.centre"],"outputs":{"value":"skirt-back.on.host.pose.z.t0.value"}},{"id":"skirt-back.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-back.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"skirt-back.seat.value"},"params":{"from":"skirt-back.seat","to":"host.local"}},{"id":"skirt-back.chain","op":"compose@1","args":["skirt-back.seat.value","skirt-back.poseValue"],"outputs":{"pose":"skirt-back.chain.value"}},{"id":"skirt-back.world","op":"compose@1","args":["host.chain.value","skirt-back.chain.value"],"outputs":{"pose":"skirt-back.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"skirt-front.dimension.depth":10,"skirt-back.dimension.depth":10},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-4f5d6b":"#4f5d6b"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"skirt-front","material":{"token":"palette.tpl-4f5d6b"}},{"target":"skirt-back","material":{"token":"palette.tpl-4f5d6b"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"skirt-front","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"skirt-front"},"origin":{}},{"id":"skirt-back","type":"fixed","body0":{"part":"host","face":"back"},"body1":{"part":"skirt-back"},"origin":{}}]}
|
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
"face": "front"
|
|
96
96
|
},
|
|
97
97
|
"body1": {
|
|
98
|
-
"part": "{id}-skirt-front"
|
|
99
|
-
"face": "back"
|
|
98
|
+
"part": "{id}-skirt-front"
|
|
100
99
|
},
|
|
101
100
|
"origin": {}
|
|
102
101
|
}
|
|
@@ -111,8 +110,7 @@
|
|
|
111
110
|
"face": "back"
|
|
112
111
|
},
|
|
113
112
|
"body1": {
|
|
114
|
-
"part": "{id}-skirt-back"
|
|
115
|
-
"face": "front"
|
|
113
|
+
"part": "{id}-skirt-back"
|
|
116
114
|
},
|
|
117
115
|
"origin": {}
|
|
118
116
|
}
|
|
@@ -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: 1600, y: 1400, z: 1000 }, 'TPL_COUNTER_DISPLAY'))
|
|
6
6
|
m.box('display', 600, 200, 60)
|
|
7
|
-
.on('display', '
|
|
7
|
+
.on('display', 'host', 'front', { y: 'max' })
|
|
8
8
|
.colour('display', 'screen', '#1b1f23')
|
|
9
9
|
.box('digits', 540, 140, 5)
|
|
10
|
-
.on('digits', '
|
|
10
|
+
.on('digits', 'display', 'front')
|
|
11
11
|
.colour('digits', 'digits', '#e74c3c', true)
|
|
12
12
|
return m.asset
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_COUNTER_DISPLAY","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":"display.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"display.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"display.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.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_COUNTER_DISPLAY","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":"display.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"display.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"display.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"digits.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":"display.k.centre","unit":"ratio","value":-0.5},{"id":"digits.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":"display.shape","op":"extrude@1","args":["display.start.value","display.dimension.height","display.dimension.width","display.dimension.depth"],"outputs":{"shape":"display.shapeValue"},"params":{"frame":"display.local","axis":"y","section":"rectangle"}},{"id":"display.pose","op":"rigid@1","args":["d.mm.0","display.on.host.pose.y.t0.value","display.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"display.poseValue"},"params":{"from":"display.local","to":"display.seat"}},{"id":"display","op":"place@1","args":["display.shapeValue","display.world.value"],"outputs":{"placed":"display.placed"}},{"id":"display.start","op":"mul@1","args":["display.dimension.height","display.k.centre"],"outputs":{"value":"display.start.value"}},{"id":"digits.shape","op":"extrude@1","args":["digits.start.value","digits.dimension.height","digits.dimension.width","digits.dimension.depth"],"outputs":{"shape":"digits.shapeValue"},"params":{"frame":"digits.local","axis":"y","section":"rectangle"}},{"id":"digits.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","digits.on.display.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"digits.poseValue"},"params":{"from":"digits.local","to":"digits.seat"}},{"id":"digits","op":"place@1","args":["digits.shapeValue","digits.world.value"],"outputs":{"placed":"digits.placed"}},{"id":"digits.start","op":"mul@1","args":["digits.dimension.height","digits.k.centre"],"outputs":{"value":"digits.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":"display.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"display.on.host.seat.y.t0.value"}},{"id":"display.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"display.on.host.seat.z.t0.value"}},{"id":"display.on.host.pose.y.t0","op":"mul@1","args":["display.dimension.height","host.k.centre"],"outputs":{"value":"display.on.host.pose.y.t0.value"}},{"id":"display.on.host.pose.z.t0","op":"mul@1","args":["display.dimension.depth","k.ratio.0_5"],"outputs":{"value":"display.on.host.pose.z.t0.value"}},{"id":"display.seat.rigid","op":"rigid@1","args":["d.mm.0","display.on.host.seat.y.t0.value","display.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"display.seat.value"},"params":{"from":"display.seat","to":"host.local"}},{"id":"display.chain","op":"compose@1","args":["display.seat.value","display.poseValue"],"outputs":{"pose":"display.chain.value"}},{"id":"display.world","op":"compose@1","args":["host.chain.value","display.chain.value"],"outputs":{"pose":"display.world.value"}},{"id":"digits.on.display.seat.z.t0","op":"mul@1","args":["display.dimension.depth","k.ratio.0_5"],"outputs":{"value":"digits.on.display.seat.z.t0.value"}},{"id":"digits.on.display.pose.z.t0","op":"mul@1","args":["digits.dimension.depth","k.ratio.0_5"],"outputs":{"value":"digits.on.display.pose.z.t0.value"}},{"id":"digits.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","digits.on.display.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"digits.seat.value"},"params":{"from":"digits.seat","to":"display.local"}},{"id":"digits.chain","op":"compose@1","args":["digits.seat.value","digits.poseValue"],"outputs":{"pose":"digits.chain.value"}},{"id":"digits.world","op":"compose@1","args":["display.world.value","digits.chain.value"],"outputs":{"pose":"digits.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"display.dimension.width":600,"display.dimension.height":200,"display.dimension.depth":60,"digits.dimension.width":540,"digits.dimension.height":140,"digits.dimension.depth":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-1b1f23":"#1b1f23","palette.tpl-e74c3c":"#e74c3c"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"display","material":{"token":"palette.tpl-1b1f23"}},{"target":"digits","material":{"token":"palette.tpl-e74c3c","emissive":{"on":true,"token":"palette.tpl-e74c3c","intensity":1}}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"display","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"display"},"origin":{"align":{"y":"max"}}},{"id":"digits","type":"fixed","body0":{"part":"display","face":"front"},"body1":{"part":"digits"},"origin":{}}]}
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "front"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-display"
|
|
55
|
-
"face": "back"
|
|
54
|
+
"part": "{id}-display"
|
|
56
55
|
},
|
|
57
56
|
"origin": {
|
|
58
57
|
"align": {
|
|
@@ -71,8 +70,7 @@
|
|
|
71
70
|
"face": "front"
|
|
72
71
|
},
|
|
73
72
|
"body1": {
|
|
74
|
-
"part": "{id}-digits"
|
|
75
|
-
"face": "back"
|
|
73
|
+
"part": "{id}-digits"
|
|
76
74
|
},
|
|
77
75
|
"origin": {}
|
|
78
76
|
}
|
|
@@ -4,6 +4,6 @@ import { host, Model } from '../_lib/model.mts'
|
|
|
4
4
|
export default function build() {
|
|
5
5
|
const m = new Model(host({ x: 3000, y: 1200, z: 400 }, 'TPL_DOCK_BUMPERS'))
|
|
6
6
|
for (const [b, x] of [['bumper-left', 'min'], ['bumper-right', 'max']] as const)
|
|
7
|
-
m.box(b, 250, 500, 120).on(b, '
|
|
7
|
+
m.box(b, 250, 500, 120).on(b, 'host', 'front', { x, y: 'max' }).colour(b, 'wheel', '#2f3437')
|
|
8
8
|
return m.asset
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_DOCK_BUMPERS","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":"bumper-left.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-left.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-left.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.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_DOCK_BUMPERS","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":"bumper-left.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-left.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-left.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"bumper-right.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":"bumper-left.k.centre","unit":"ratio","value":-0.5},{"id":"bumper-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.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":"bumper-left.shape","op":"extrude@1","args":["bumper-left.start.value","bumper-left.dimension.height","bumper-left.dimension.width","bumper-left.dimension.depth"],"outputs":{"shape":"bumper-left.shapeValue"},"params":{"frame":"bumper-left.local","axis":"y","section":"rectangle"}},{"id":"bumper-left.pose","op":"rigid@1","args":["bumper-left.on.host.pose.x.t0.value","bumper-left.on.host.pose.y.t0.value","bumper-left.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bumper-left.poseValue"},"params":{"from":"bumper-left.local","to":"bumper-left.seat"}},{"id":"bumper-left","op":"place@1","args":["bumper-left.shapeValue","bumper-left.world.value"],"outputs":{"placed":"bumper-left.placed"}},{"id":"bumper-left.start","op":"mul@1","args":["bumper-left.dimension.height","bumper-left.k.centre"],"outputs":{"value":"bumper-left.start.value"}},{"id":"bumper-right.shape","op":"extrude@1","args":["bumper-right.start.value","bumper-right.dimension.height","bumper-right.dimension.width","bumper-right.dimension.depth"],"outputs":{"shape":"bumper-right.shapeValue"},"params":{"frame":"bumper-right.local","axis":"y","section":"rectangle"}},{"id":"bumper-right.pose","op":"rigid@1","args":["bumper-right.on.host.pose.x.t0.value","bumper-right.on.host.pose.y.t0.value","bumper-right.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bumper-right.poseValue"},"params":{"from":"bumper-right.local","to":"bumper-right.seat"}},{"id":"bumper-right","op":"place@1","args":["bumper-right.shapeValue","bumper-right.world.value"],"outputs":{"placed":"bumper-right.placed"}},{"id":"bumper-right.start","op":"mul@1","args":["bumper-right.dimension.height","bumper-right.k.centre"],"outputs":{"value":"bumper-right.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":"bumper-left.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"bumper-left.on.host.seat.x.t0.value"}},{"id":"bumper-left.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.seat.y.t0.value"}},{"id":"bumper-left.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.seat.z.t0.value"}},{"id":"bumper-left.on.host.pose.x.t0","op":"mul@1","args":["bumper-left.dimension.width","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.pose.x.t0.value"}},{"id":"bumper-left.on.host.pose.y.t0","op":"mul@1","args":["bumper-left.dimension.height","host.k.centre"],"outputs":{"value":"bumper-left.on.host.pose.y.t0.value"}},{"id":"bumper-left.on.host.pose.z.t0","op":"mul@1","args":["bumper-left.dimension.depth","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.pose.z.t0.value"}},{"id":"bumper-left.seat.rigid","op":"rigid@1","args":["bumper-left.on.host.seat.x.t0.value","bumper-left.on.host.seat.y.t0.value","bumper-left.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bumper-left.seat.value"},"params":{"from":"bumper-left.seat","to":"host.local"}},{"id":"bumper-left.chain","op":"compose@1","args":["bumper-left.seat.value","bumper-left.poseValue"],"outputs":{"pose":"bumper-left.chain.value"}},{"id":"bumper-left.world","op":"compose@1","args":["host.chain.value","bumper-left.chain.value"],"outputs":{"pose":"bumper-left.world.value"}},{"id":"bumper-right.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.seat.x.t0.value"}},{"id":"bumper-right.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.seat.y.t0.value"}},{"id":"bumper-right.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.seat.z.t0.value"}},{"id":"bumper-right.on.host.pose.x.t0","op":"mul@1","args":["bumper-right.dimension.width","host.k.centre"],"outputs":{"value":"bumper-right.on.host.pose.x.t0.value"}},{"id":"bumper-right.on.host.pose.y.t0","op":"mul@1","args":["bumper-right.dimension.height","host.k.centre"],"outputs":{"value":"bumper-right.on.host.pose.y.t0.value"}},{"id":"bumper-right.on.host.pose.z.t0","op":"mul@1","args":["bumper-right.dimension.depth","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.pose.z.t0.value"}},{"id":"bumper-right.seat.rigid","op":"rigid@1","args":["bumper-right.on.host.seat.x.t0.value","bumper-right.on.host.seat.y.t0.value","bumper-right.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"bumper-right.seat.value"},"params":{"from":"bumper-right.seat","to":"host.local"}},{"id":"bumper-right.chain","op":"compose@1","args":["bumper-right.seat.value","bumper-right.poseValue"],"outputs":{"pose":"bumper-right.chain.value"}},{"id":"bumper-right.world","op":"compose@1","args":["host.chain.value","bumper-right.chain.value"],"outputs":{"pose":"bumper-right.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":1200,"host.size.z":400,"bumper-left.dimension.width":250,"bumper-left.dimension.height":500,"bumper-left.dimension.depth":120,"bumper-right.dimension.width":250,"bumper-right.dimension.height":500,"bumper-right.dimension.depth":120},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-2f3437":"#2f3437"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"bumper-left","material":{"token":"palette.tpl-2f3437"}},{"target":"bumper-right","material":{"token":"palette.tpl-2f3437"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"bumper-left","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"bumper-left"},"origin":{"align":{"x":"min","y":"max"}}},{"id":"bumper-right","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"bumper-right"},"origin":{"align":{"x":"max","y":"max"}}}]}
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"face": "front"
|
|
52
52
|
},
|
|
53
53
|
"body1": {
|
|
54
|
-
"part": "{id}-bumper-left"
|
|
55
|
-
"face": "back"
|
|
54
|
+
"part": "{id}-bumper-left"
|
|
56
55
|
},
|
|
57
56
|
"origin": {
|
|
58
57
|
"align": {
|
|
@@ -72,8 +71,7 @@
|
|
|
72
71
|
"face": "front"
|
|
73
72
|
},
|
|
74
73
|
"body1": {
|
|
75
|
-
"part": "{id}-bumper-right"
|
|
76
|
-
"face": "back"
|
|
74
|
+
"part": "{id}-bumper-right"
|
|
77
75
|
},
|
|
78
76
|
"origin": {
|
|
79
77
|
"align": {
|
|
@@ -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: 2400, y: 1200, z: 3000 }, 'TPL_DOCK_LEVELER'))
|
|
6
6
|
m.box('plate', 2000, 30, 2500)
|
|
7
|
-
.on('plate', '
|
|
7
|
+
.on('plate', 'host', 'top', { z: 'max' })
|
|
8
8
|
.colour('plate', 'leveler', '#5d6d7e')
|
|
9
9
|
.moves('plate', { type: 'revolute', axis: 'X', lower: -10, upper: 10, state: 'tilt' })
|
|
10
10
|
return m.asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"figure-asset-1","name":"TPL_DOCK_LEVELER","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":"plate.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"plate.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"plate.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tilt","unit":"deg","min":-10,"max":10,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"
|
|
1
|
+
{"version":"figure-asset-1","name":"TPL_DOCK_LEVELER","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":"plate.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"plate.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"plate.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tilt","unit":"deg","min":-10,"max":10,"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":"plate.k.centre","unit":"ratio","value":-0.5},{"id":"axis.ratio.1","unit":"ratio","value":1},{"id":"axis.ratio.0","unit":"ratio","value":0}],"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":"plate.shape","op":"extrude@1","args":["plate.start.value","plate.dimension.height","plate.dimension.width","plate.dimension.depth"],"outputs":{"shape":"plate.shapeValue"},"params":{"frame":"plate.local","axis":"y","section":"rectangle"}},{"id":"plate.pose","op":"rigid@1","args":["d.mm.0","plate.on.host.pose.y.t0.value","plate.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"plate.poseValue"},"params":{"from":"plate.local","to":"plate.seat"}},{"id":"plate","op":"place@1","args":["plate.shapeValue","plate.world.value"],"outputs":{"placed":"plate.placed"}},{"id":"plate.start","op":"mul@1","args":["plate.dimension.height","plate.k.centre"],"outputs":{"value":"plate.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":"plate.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"plate.on.host.seat.y.t0.value"}},{"id":"plate.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"plate.on.host.seat.z.t0.value"}},{"id":"plate.on.host.pose.y.t0","op":"mul@1","args":["plate.dimension.height","k.ratio.0_5"],"outputs":{"value":"plate.on.host.pose.y.t0.value"}},{"id":"plate.on.host.pose.z.t0","op":"mul@1","args":["plate.dimension.depth","host.k.centre"],"outputs":{"value":"plate.on.host.pose.z.t0.value"}},{"id":"plate.seat.rigid","op":"rigid@1","args":["d.mm.0","plate.on.host.seat.y.t0.value","plate.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"plate.seat.value"},"params":{"from":"plate.joint","to":"host.local"}},{"id":"plate.chain","op":"compose@1","args":["plate.seat.value","plate.turned.value"],"outputs":{"pose":"plate.chain.value"}},{"id":"plate.world","op":"compose@1","args":["host.chain.value","plate.chain.value"],"outputs":{"pose":"plate.world.value"}},{"id":"plate.motion","op":"axis-turn@1","args":["axis.ratio.1","axis.ratio.0","axis.ratio.0","tilt"],"outputs":{"pose":"plate.motion.value"},"params":{"from":"plate.seat","to":"plate.joint"}},{"id":"plate.turned","op":"compose@1","args":["plate.motion.value","plate.poseValue"],"outputs":{"pose":"plate.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":2400,"host.size.y":1200,"host.size.z":3000,"plate.dimension.width":2000,"plate.dimension.height":30,"plate.dimension.depth":2500},"stateDefaults":{"tilt":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-5d6d7e":"#5d6d7e"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"plate","material":{"token":"palette.tpl-5d6d7e"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"plate","type":"revolute","body0":{"part":"host","face":"top"},"body1":{"part":"plate"},"origin":{"align":{"z":"max"}},"axis":"X","lowerLimit":-10,"upperLimit":10,"state":{"id":"tilt"}}]}
|