@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.
Files changed (347) hide show
  1. package/dist-server/service/figure/figure-context.d.ts +1 -1
  2. package/dist-server/service/figure/figure-context.js +10 -4
  3. package/dist-server/service/figure/figure-context.js.map +1 -1
  4. package/dist-server/service/figure/figure-propose-steps.js +3 -3
  5. package/dist-server/service/figure/figure-propose-steps.js.map +1 -1
  6. package/dist-server/tsconfig.tsbuildinfo +1 -1
  7. package/package.json +3 -3
  8. package/recipes/_lib/model.mts +4 -4
  9. package/recipes/air-cylinder/build.mts +2 -2
  10. package/recipes/air-cylinder/models/default.json +1 -1
  11. package/recipes/air-cylinder/recipe.json +2 -4
  12. package/recipes/air-shower/build.mts +2 -2
  13. package/recipes/air-shower/models/default.json +1 -1
  14. package/recipes/air-shower/recipe.json +2 -4
  15. package/recipes/barrier-gate/build.mts +1 -1
  16. package/recipes/barrier-gate/models/default.json +1 -1
  17. package/recipes/barrier-gate/recipe.json +1 -2
  18. package/recipes/base-frame/build.mts +2 -2
  19. package/recipes/base-frame/models/default.json +1 -1
  20. package/recipes/base-frame/recipe.json +4 -8
  21. package/recipes/belt-surface/build.mts +1 -1
  22. package/recipes/belt-surface/models/default.json +1 -1
  23. package/recipes/belt-surface/recipe.json +1 -2
  24. package/recipes/bin-row/build.mts +1 -1
  25. package/recipes/bin-row/models/default.json +1 -1
  26. package/recipes/bin-row/recipe.json +1 -2
  27. package/recipes/bollard-row/build.mts +1 -1
  28. package/recipes/bollard-row/models/default.json +1 -1
  29. package/recipes/bollard-row/recipe.json +1 -2
  30. package/recipes/buzzer/build.mts +1 -1
  31. package/recipes/buzzer/models/default.json +1 -1
  32. package/recipes/buzzer/recipe.json +1 -2
  33. package/recipes/cabinet-doors/build.mts +2 -2
  34. package/recipes/cabinet-doors/models/default.json +1 -1
  35. package/recipes/cabinet-doors/models/doors=1.json +1 -1
  36. package/recipes/cabinet-doors/models/doors=2.json +1 -1
  37. package/recipes/cabinet-doors/recipe.json +2 -4
  38. package/recipes/cable-tray/build.mts +2 -2
  39. package/recipes/cable-tray/models/default.json +1 -1
  40. package/recipes/cable-tray/recipe.json +3 -6
  41. package/recipes/camera-mount/build.mts +2 -2
  42. package/recipes/camera-mount/models/default.json +1 -1
  43. package/recipes/camera-mount/recipe.json +2 -4
  44. package/recipes/canopy/build.mts +2 -2
  45. package/recipes/canopy/models/default.json +1 -1
  46. package/recipes/canopy/recipe.json +5 -10
  47. package/recipes/cart/build.mts +5 -5
  48. package/recipes/cart/models/default.json +1 -1
  49. package/recipes/cart/recipe.json +20 -40
  50. package/recipes/cart-handle/build.mts +2 -2
  51. package/recipes/cart-handle/models/default.json +1 -1
  52. package/recipes/cart-handle/recipe.json +3 -6
  53. package/recipes/casters-four/build.mts +2 -2
  54. package/recipes/casters-four/models/default.json +1 -1
  55. package/recipes/casters-four/recipe.json +16 -32
  56. package/recipes/ceiling-rail-carriage/build.mts +2 -2
  57. package/recipes/ceiling-rail-carriage/models/default.json +1 -1
  58. package/recipes/ceiling-rail-carriage/recipe.json +2 -4
  59. package/recipes/chain-rails/build.mts +2 -2
  60. package/recipes/chain-rails/models/default.json +1 -1
  61. package/recipes/chain-rails/recipe.json +2 -4
  62. package/recipes/charging-station/build.mts +2 -2
  63. package/recipes/charging-station/models/default.json +1 -1
  64. package/recipes/charging-station/recipe.json +2 -4
  65. package/recipes/column-row/build.mts +1 -1
  66. package/recipes/column-row/models/default.json +1 -1
  67. package/recipes/column-row/recipe.json +1 -2
  68. package/recipes/control-cabinet/build.mts +2 -2
  69. package/recipes/control-cabinet/models/default.json +1 -1
  70. package/recipes/control-cabinet/recipe.json +2 -4
  71. package/recipes/conveyor-skirts/build.mts +2 -2
  72. package/recipes/conveyor-skirts/models/default.json +1 -1
  73. package/recipes/conveyor-skirts/recipe.json +2 -4
  74. package/recipes/counter-display/build.mts +2 -2
  75. package/recipes/counter-display/models/default.json +1 -1
  76. package/recipes/counter-display/recipe.json +2 -4
  77. package/recipes/dock-bumpers/build.mts +1 -1
  78. package/recipes/dock-bumpers/models/default.json +1 -1
  79. package/recipes/dock-bumpers/recipe.json +2 -4
  80. package/recipes/dock-leveler/build.mts +1 -1
  81. package/recipes/dock-leveler/models/default.json +1 -1
  82. package/recipes/dock-leveler/recipe.json +1 -2
  83. package/recipes/double-hinged-door/build.mts +2 -2
  84. package/recipes/double-hinged-door/models/default.json +1 -1
  85. package/recipes/double-hinged-door/recipe.json +3 -6
  86. package/recipes/drawer-stack/build.mts +1 -1
  87. package/recipes/drawer-stack/models/default.json +1 -1
  88. package/recipes/drawer-stack/models/drawers=2.json +1 -1
  89. package/recipes/drawer-stack/models/drawers=3.json +1 -1
  90. package/recipes/drawer-stack/models/drawers=4.json +1 -1
  91. package/recipes/drawer-stack/recipe.json +9 -18
  92. package/recipes/drip-tray/build.mts +1 -1
  93. package/recipes/drip-tray/models/default.json +1 -1
  94. package/recipes/drip-tray/recipe.json +1 -2
  95. package/recipes/duct-fan/build.mts +2 -2
  96. package/recipes/duct-fan/models/default.json +1 -1
  97. package/recipes/duct-fan/recipe.json +2 -4
  98. package/recipes/emergency-stop/build.mts +2 -2
  99. package/recipes/emergency-stop/models/default.json +1 -1
  100. package/recipes/emergency-stop/recipe.json +2 -4
  101. package/recipes/end-covers/build.mts +2 -2
  102. package/recipes/end-covers/models/default.json +1 -1
  103. package/recipes/end-covers/recipe.json +2 -4
  104. package/recipes/ffu-row/build.mts +1 -1
  105. package/recipes/ffu-row/models/default.json +1 -1
  106. package/recipes/ffu-row/recipe.json +1 -2
  107. package/recipes/fire-extinguisher/build.mts +2 -2
  108. package/recipes/fire-extinguisher/models/default.json +1 -1
  109. package/recipes/fire-extinguisher/recipe.json +2 -4
  110. package/recipes/first-aid-box/build.mts +2 -2
  111. package/recipes/first-aid-box/models/default.json +1 -1
  112. package/recipes/first-aid-box/recipe.json +2 -4
  113. package/recipes/floor-zone/build.mts +2 -2
  114. package/recipes/floor-zone/models/default.json +1 -1
  115. package/recipes/floor-zone/recipe.json +4 -8
  116. package/recipes/folding-door/build.mts +3 -3
  117. package/recipes/folding-door/models/default.json +1 -1
  118. package/recipes/folding-door/recipe.json +3 -6
  119. package/recipes/fork/build.mts +1 -1
  120. package/recipes/fork/models/default.json +1 -1
  121. package/recipes/fork/recipe.json +2 -4
  122. package/recipes/gantry-frame/build.mts +2 -2
  123. package/recipes/gantry-frame/models/default.json +1 -1
  124. package/recipes/gantry-frame/recipe.json +3 -6
  125. package/recipes/gripper-2f/build.mts +2 -2
  126. package/recipes/gripper-2f/models/default.json +1 -1
  127. package/recipes/gripper-2f/recipe.json +3 -6
  128. package/recipes/guard-cover/build.mts +1 -1
  129. package/recipes/guard-cover/models/default.json +1 -1
  130. package/recipes/guard-cover/recipe.json +1 -2
  131. package/recipes/handrail/build.mts +2 -2
  132. package/recipes/handrail/models/default.json +1 -1
  133. package/recipes/handrail/recipe.json +2 -4
  134. package/recipes/hatch/build.mts +2 -2
  135. package/recipes/hatch/models/default.json +1 -1
  136. package/recipes/hatch/recipe.json +2 -4
  137. package/recipes/hinged-door/build.mts +2 -2
  138. package/recipes/hinged-door/models/default.json +1 -1
  139. package/recipes/hinged-door/models/hinge=left.json +1 -1
  140. package/recipes/hinged-door/models/hinge=right.json +1 -1
  141. package/recipes/hinged-door/recipe.json +3 -6
  142. package/recipes/hmi-monitor/build.mts +2 -2
  143. package/recipes/hmi-monitor/models/default.json +1 -1
  144. package/recipes/hmi-monitor/recipe.json +2 -4
  145. package/recipes/hopper/build.mts +2 -2
  146. package/recipes/hopper/models/default.json +1 -1
  147. package/recipes/hopper/recipe.json +2 -4
  148. package/recipes/interlock-switch/build.mts +1 -1
  149. package/recipes/interlock-switch/models/default.json +1 -1
  150. package/recipes/interlock-switch/recipe.json +1 -2
  151. package/recipes/junction-box/build.mts +1 -1
  152. package/recipes/junction-box/models/default.json +1 -1
  153. package/recipes/junction-box/recipe.json +1 -2
  154. package/recipes/ladder/build.mts +2 -2
  155. package/recipes/ladder/models/default.json +1 -1
  156. package/recipes/ladder/recipe.json +3 -6
  157. package/recipes/legs-four/build.mts +1 -1
  158. package/recipes/legs-four/models/default.json +1 -1
  159. package/recipes/legs-four/recipe.json +4 -8
  160. package/recipes/leveling-feet/build.mts +1 -1
  161. package/recipes/leveling-feet/models/default.json +1 -1
  162. package/recipes/leveling-feet/recipe.json +4 -8
  163. package/recipes/lift-updown/build.mts +1 -1
  164. package/recipes/lift-updown/models/default.json +1 -1
  165. package/recipes/lift-updown/recipe.json +1 -2
  166. package/recipes/light-curtain/build.mts +1 -1
  167. package/recipes/light-curtain/models/default.json +1 -1
  168. package/recipes/light-curtain/recipe.json +2 -4
  169. package/recipes/limit-switch/build.mts +2 -2
  170. package/recipes/limit-switch/models/default.json +1 -1
  171. package/recipes/limit-switch/recipe.json +2 -4
  172. package/recipes/linear-guide/build.mts +2 -2
  173. package/recipes/linear-guide/models/default.json +1 -1
  174. package/recipes/linear-guide/recipe.json +2 -4
  175. package/recipes/locker-row/build.mts +1 -1
  176. package/recipes/locker-row/models/default.json +1 -1
  177. package/recipes/locker-row/recipe.json +1 -2
  178. package/recipes/motor-box/build.mts +1 -1
  179. package/recipes/motor-box/models/default.json +1 -1
  180. package/recipes/motor-box/recipe.json +1 -2
  181. package/recipes/observation-window/build.mts +2 -2
  182. package/recipes/observation-window/models/default.json +1 -1
  183. package/recipes/observation-window/recipe.json +2 -4
  184. package/recipes/operator-panel/build.mts +2 -2
  185. package/recipes/operator-panel/models/buttons=2.json +1 -1
  186. package/recipes/operator-panel/models/buttons=3.json +1 -1
  187. package/recipes/operator-panel/models/buttons=4.json +1 -1
  188. package/recipes/operator-panel/models/buttons=5.json +1 -1
  189. package/recipes/operator-panel/models/default.json +1 -1
  190. package/recipes/operator-panel/recipe.json +5 -10
  191. package/recipes/pallet/build.mts +2 -2
  192. package/recipes/pallet/models/default.json +1 -1
  193. package/recipes/pallet/recipe.json +4 -8
  194. package/recipes/partition-wall/build.mts +2 -2
  195. package/recipes/partition-wall/models/default.json +1 -1
  196. package/recipes/partition-wall/recipe.json +3 -6
  197. package/recipes/pass-box/build.mts +2 -2
  198. package/recipes/pass-box/models/default.json +1 -1
  199. package/recipes/pass-box/recipe.json +2 -4
  200. package/recipes/peg-board/build.mts +2 -2
  201. package/recipes/peg-board/models/default.json +1 -1
  202. package/recipes/peg-board/recipe.json +2 -4
  203. package/recipes/photo-sensor-pair/build.mts +1 -1
  204. package/recipes/photo-sensor-pair/models/default.json +1 -1
  205. package/recipes/photo-sensor-pair/recipe.json +2 -4
  206. package/recipes/pipe-run/build.mts +1 -1
  207. package/recipes/pipe-run/models/default.json +1 -1
  208. package/recipes/pipe-run/recipe.json +4 -7
  209. package/recipes/platform/build.mts +2 -2
  210. package/recipes/platform/models/default.json +1 -1
  211. package/recipes/platform/recipe.json +5 -10
  212. package/recipes/power-box/build.mts +1 -1
  213. package/recipes/power-box/models/default.json +1 -1
  214. package/recipes/power-box/recipe.json +1 -2
  215. package/recipes/pressure-gauge/build.mts +1 -1
  216. package/recipes/pressure-gauge/models/default.json +1 -1
  217. package/recipes/pressure-gauge/recipe.json +1 -2
  218. package/recipes/pull-cord/build.mts +1 -1
  219. package/recipes/pull-cord/models/default.json +1 -1
  220. package/recipes/pull-cord/recipe.json +1 -2
  221. package/recipes/pump/build.mts +2 -2
  222. package/recipes/pump/models/default.json +1 -1
  223. package/recipes/pump/recipe.json +2 -4
  224. package/recipes/pusher/build.mts +1 -1
  225. package/recipes/pusher/models/default.json +1 -1
  226. package/recipes/pusher/recipe.json +1 -2
  227. package/recipes/robot-plinth/build.mts +2 -2
  228. package/recipes/robot-plinth/models/default.json +1 -1
  229. package/recipes/robot-plinth/recipe.json +2 -4
  230. package/recipes/roll-up-shutter/build.mts +2 -2
  231. package/recipes/roll-up-shutter/models/default.json +1 -1
  232. package/recipes/roll-up-shutter/recipe.json +2 -4
  233. package/recipes/roller-row/build.mts +1 -1
  234. package/recipes/roller-row/models/default.json +1 -1
  235. package/recipes/roller-row/recipe.json +5 -7
  236. package/recipes/room-shell/build.mts +3 -3
  237. package/recipes/room-shell/models/default.json +1 -1
  238. package/recipes/room-shell/recipe.json +5 -10
  239. package/recipes/rotating-beacon/build.mts +3 -3
  240. package/recipes/rotating-beacon/models/default.json +1 -1
  241. package/recipes/rotating-beacon/recipe.json +3 -6
  242. package/recipes/safety-fence/build.mts +2 -2
  243. package/recipes/safety-fence/models/default.json +1 -1
  244. package/recipes/safety-fence/recipe.json +2 -4
  245. package/recipes/safety-mat/build.mts +1 -1
  246. package/recipes/safety-mat/models/default.json +1 -1
  247. package/recipes/safety-mat/recipe.json +1 -2
  248. package/recipes/safety-sign-stand/build.mts +3 -3
  249. package/recipes/safety-sign-stand/models/default.json +1 -1
  250. package/recipes/safety-sign-stand/recipe.json +3 -6
  251. package/recipes/scanner-mount/build.mts +3 -3
  252. package/recipes/scanner-mount/models/default.json +1 -1
  253. package/recipes/scanner-mount/recipe.json +3 -6
  254. package/recipes/selector-switch/build.mts +2 -2
  255. package/recipes/selector-switch/models/default.json +1 -1
  256. package/recipes/selector-switch/recipe.json +2 -4
  257. package/recipes/shelf-tiers/build.mts +1 -1
  258. package/recipes/shelf-tiers/models/default.json +1 -1
  259. package/recipes/shelf-tiers/models/tiers=2.json +1 -1
  260. package/recipes/shelf-tiers/models/tiers=3.json +1 -1
  261. package/recipes/shelf-tiers/models/tiers=4.json +1 -1
  262. package/recipes/shelf-tiers/models/tiers=5.json +1 -1
  263. package/recipes/shelf-tiers/recipe.json +4 -8
  264. package/recipes/side-guides/build.mts +1 -1
  265. package/recipes/side-guides/models/default.json +1 -1
  266. package/recipes/side-guides/recipe.json +2 -4
  267. package/recipes/sign-board/build.mts +1 -1
  268. package/recipes/sign-board/models/default.json +1 -1
  269. package/recipes/sign-board/recipe.json +1 -2
  270. package/recipes/signal-tower-3/build.mts +2 -2
  271. package/recipes/signal-tower-3/models/default.json +1 -1
  272. package/recipes/signal-tower-3/recipe.json +4 -8
  273. package/recipes/sliding-door/build.mts +4 -4
  274. package/recipes/sliding-door/models/default.json +1 -1
  275. package/recipes/sliding-door/models/leaves=1,lamp=false.json +1 -1
  276. package/recipes/sliding-door/models/leaves=1,lamp=true.json +1 -1
  277. package/recipes/sliding-door/models/leaves=2,lamp=false.json +1 -1
  278. package/recipes/sliding-door/models/leaves=2,lamp=true.json +1 -1
  279. package/recipes/sliding-door/recipe.json +5 -10
  280. package/recipes/stairs/build.mts +1 -1
  281. package/recipes/stairs/models/default.json +1 -1
  282. package/recipes/stairs/recipe.json +1 -2
  283. package/recipes/status-lamp/build.mts +3 -3
  284. package/recipes/status-lamp/models/default.json +1 -1
  285. package/recipes/status-lamp/recipe.json +3 -6
  286. package/recipes/stopper/build.mts +1 -1
  287. package/recipes/stopper/models/default.json +1 -1
  288. package/recipes/stopper/recipe.json +1 -2
  289. package/recipes/suction-pads/build.mts +1 -1
  290. package/recipes/suction-pads/models/default.json +1 -1
  291. package/recipes/suction-pads/recipe.json +1 -2
  292. package/recipes/tank/build.mts +1 -1
  293. package/recipes/tank/models/default.json +1 -1
  294. package/recipes/tank/recipe.json +1 -2
  295. package/recipes/telescopic-arm/build.mts +2 -2
  296. package/recipes/telescopic-arm/models/default.json +1 -1
  297. package/recipes/telescopic-arm/recipe.json +2 -4
  298. package/recipes/toe-board/build.mts +1 -1
  299. package/recipes/toe-board/models/default.json +1 -1
  300. package/recipes/toe-board/recipe.json +1 -2
  301. package/recipes/tote/build.mts +1 -1
  302. package/recipes/tote/models/default.json +1 -1
  303. package/recipes/tote/recipe.json +1 -2
  304. package/recipes/traffic-cones/build.mts +2 -2
  305. package/recipes/traffic-cones/models/default.json +1 -1
  306. package/recipes/traffic-cones/recipe.json +2 -4
  307. package/recipes/transfer-belts/build.mts +1 -1
  308. package/recipes/transfer-belts/models/default.json +1 -1
  309. package/recipes/transfer-belts/recipe.json +2 -4
  310. package/recipes/tray-stack/build.mts +1 -1
  311. package/recipes/tray-stack/models/default.json +1 -1
  312. package/recipes/tray-stack/models/trays=3.json +1 -1
  313. package/recipes/tray-stack/models/trays=4.json +1 -1
  314. package/recipes/tray-stack/models/trays=5.json +1 -1
  315. package/recipes/tray-stack/recipe.json +5 -10
  316. package/recipes/trough/build.mts +1 -1
  317. package/recipes/trough/models/default.json +1 -1
  318. package/recipes/trough/recipe.json +1 -2
  319. package/recipes/turntable/build.mts +2 -2
  320. package/recipes/turntable/models/default.json +1 -1
  321. package/recipes/turntable/recipe.json +2 -4
  322. package/recipes/valve-handle/build.mts +3 -3
  323. package/recipes/valve-handle/models/default.json +1 -1
  324. package/recipes/valve-handle/recipe.json +3 -6
  325. package/recipes/waste-bin/build.mts +1 -1
  326. package/recipes/waste-bin/models/default.json +1 -1
  327. package/recipes/waste-bin/recipe.json +1 -2
  328. package/recipes/work-light/build.mts +3 -3
  329. package/recipes/work-light/models/default.json +1 -1
  330. package/recipes/work-light/recipe.json +3 -6
  331. package/recipes/workbench-top/build.mts +1 -1
  332. package/recipes/workbench-top/models/default.json +1 -1
  333. package/recipes/workbench-top/recipe.json +1 -2
  334. package/server/service/figure/figure-category-db.test.ts +1 -1
  335. package/server/service/figure/figure-context.test.ts +6 -6
  336. package/server/service/figure/figure-context.ts +11 -4
  337. package/server/service/figure/figure-deprecation-db.test.ts +1 -1
  338. package/server/service/figure/figure-format.test.ts +3 -3
  339. package/server/service/figure/figure-llm-smoke.test.ts +2 -2
  340. package/server/service/figure/figure-namespace-db.test.ts +1 -1
  341. package/server/service/figure/figure-propose-clips.test.ts +1 -1
  342. package/server/service/figure/figure-propose-steps.test.ts +5 -5
  343. package/server/service/figure/figure-propose-steps.ts +3 -3
  344. package/server/service/figure/figure-public-db.test.ts +1 -1
  345. package/server/service/figure/figure-release-check.test.ts +1 -1
  346. package/server/service/figure/figure-release-record-db.test.ts +1 -1
  347. 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', 'bottom', 'host', 'top', { z: 'max' })
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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.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":"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.along.y.1.sum.value","column.on.host.own-edge.z.0.times.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.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":"column.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"column.on.host.seat.y.0.times.value"}},{"id":"column.on.host.along.y.0.times","op":"mul@1","args":["column.dimension.height","k.ratio.0_5"],"outputs":{"value":"column.on.host.along.y.0.times.value"}},{"id":"column.on.host.along.y.1.sum","op":"add@1","args":["column.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"column.on.host.along.y.1.sum.value"}},{"id":"column.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"column.on.host.edge.z.0.times.value"}},{"id":"column.on.host.own-edge.z.0.times","op":"mul@1","args":["column.dimension.depth","host.k.centre"],"outputs":{"value":"column.on.host.own-edge.z.0.times.value"}},{"id":"column.seat.rigid","op":"rigid@1","args":["column.row.start.0.times.value","column.on.host.seat.y.0.times.value","column.on.host.edge.z.0.times.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.row.extent.0.times","op":"mul@1","args":["column.dimension.width","k.ratio.0_5"],"outputs":{"value":"column.row.extent.0.times.value"}},{"id":"column.row.extent.1.times","op":"mul@1","args":["column.dimension.width","k.ratio.0_5"],"outputs":{"value":"column.row.extent.1.times.value"}},{"id":"column.row.extent.1.sum","op":"add@1","args":["column.row.extent.0.times.value","column.row.extent.1.times.value"],"outputs":{"value":"column.row.extent.1.sum.value"}},{"id":"column.layout","op":"fit-pitch@1","args":["column.row.length.1.sum.value","d.mm.0","d.mm.0","column.row.extent.1.sum.value","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","face":"bottom"},"origin":{}},{"id":"column","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"column","face":"bottom"},"origin":{"align":{"z":"max"}},"repeat":{"axis":"X","pitch":6000}}]}
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}}]}
@@ -72,8 +72,7 @@
72
72
  "face": "top"
73
73
  },
74
74
  "body1": {
75
- "part": "{id}-column",
76
- "face": "bottom"
75
+ "part": "{id}-column"
77
76
  },
78
77
  "origin": {
79
78
  "align": {
@@ -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', 'left', 'host', 'right', { y: 'min' })
7
+ .on('cabinet', 'host', 'right', { y: 'min' })
8
8
  .colour('cabinet', 'palette.cabinet', '#8795a3')
9
9
  .box('door', 20, 1180, 780)
10
- .on('door', 'left', 'cabinet', 'right', { z: 'max' })
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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.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":"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.along.x.1.sum.value","cabinet.on.host.own-edge.y.0.times.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.along.x.1.sum.value","d.mm.0","door.on.cabinet.own-edge.z.0.times.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.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":"cabinet.on.host.seat.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.seat.x.0.times.value"}},{"id":"cabinet.on.host.along.x.0.times","op":"mul@1","args":["cabinet.dimension.width","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.along.x.0.times.value"}},{"id":"cabinet.on.host.along.x.1.sum","op":"add@1","args":["cabinet.on.host.along.x.0.times.value","d.mm.0"],"outputs":{"value":"cabinet.on.host.along.x.1.sum.value"}},{"id":"cabinet.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"cabinet.on.host.edge.y.0.times.value"}},{"id":"cabinet.on.host.own-edge.y.0.times","op":"mul@1","args":["cabinet.dimension.height","k.ratio.0_5"],"outputs":{"value":"cabinet.on.host.own-edge.y.0.times.value"}},{"id":"cabinet.seat.rigid","op":"rigid@1","args":["cabinet.on.host.seat.x.0.times.value","cabinet.on.host.edge.y.0.times.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.0.times","op":"mul@1","args":["cabinet.dimension.width","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.seat.x.0.times.value"}},{"id":"door.on.cabinet.along.x.0.times","op":"mul@1","args":["door.dimension.width","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.along.x.0.times.value"}},{"id":"door.on.cabinet.along.x.1.sum","op":"add@1","args":["door.on.cabinet.along.x.0.times.value","d.mm.0"],"outputs":{"value":"door.on.cabinet.along.x.1.sum.value"}},{"id":"door.on.cabinet.edge.z.0.times","op":"mul@1","args":["cabinet.dimension.depth","k.ratio.0_5"],"outputs":{"value":"door.on.cabinet.edge.z.0.times.value"}},{"id":"door.on.cabinet.own-edge.z.0.times","op":"mul@1","args":["door.dimension.depth","host.k.centre"],"outputs":{"value":"door.on.cabinet.own-edge.z.0.times.value"}},{"id":"door.seat.rigid","op":"rigid@1","args":["door.on.cabinet.seat.x.0.times.value","d.mm.0","door.on.cabinet.edge.z.0.times.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","face":"bottom"},"origin":{}},{"id":"cabinet","type":"fixed","body0":{"part":"host","face":"right"},"body1":{"part":"cabinet","face":"left"},"origin":{"align":{"y":"min"}}},{"id":"door","type":"revolute","body0":{"part":"cabinet","face":"right"},"body1":{"part":"door","face":"left"},"origin":{"align":{"z":"max"}},"axis":"Y","lowerLimit":0,"upperLimit":100,"state":{"id":"open"}}]}
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, face, onto] of [['skirt-front', 'back', 'front'], ['skirt-back', 'front', 'back']] as const)
7
- m.box(s, 3000, 700, 10).follow(s, 'x', 'host', 'x').follow(s, 'y', 'host', 'y').on(s, face, 'host', onto).colour(s, 'panel', '#4f5d6b')
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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},{"id":"k.ratio._1","unit":"ratio","value":-1}],"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.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":"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.along.z.1.sum.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.along.z.1.sum.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.stand.y.0.times","op":"mul@1","args":["host.dimension.y.value","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":"skirt-front.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"skirt-front.on.host.seat.z.0.times.value"}},{"id":"skirt-front.on.host.along.z.0.times","op":"mul@1","args":["skirt-front.dimension.depth","k.ratio.0_5"],"outputs":{"value":"skirt-front.on.host.along.z.0.times.value"}},{"id":"skirt-front.on.host.along.z.1.sum","op":"add@1","args":["skirt-front.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"skirt-front.on.host.along.z.1.sum.value"}},{"id":"skirt-front.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-front.on.host.seat.z.0.times.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.0.times","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"skirt-back.on.host.seat.z.0.times.value"}},{"id":"skirt-back.on.host.along.z.0.times","op":"mul@1","args":["skirt-back.dimension.depth","host.k.centre"],"outputs":{"value":"skirt-back.on.host.along.z.0.times.value"}},{"id":"skirt-back.on.host.along.z.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"skirt-back.on.host.along.z.1.times.value"}},{"id":"skirt-back.on.host.along.z.1.sum","op":"add@1","args":["skirt-back.on.host.along.z.0.times.value","skirt-back.on.host.along.z.1.times.value"],"outputs":{"value":"skirt-back.on.host.along.z.1.sum.value"}},{"id":"skirt-back.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","skirt-back.on.host.seat.z.0.times.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","face":"bottom"},"origin":{}},{"id":"skirt-front","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"skirt-front","face":"back"},"origin":{}},{"id":"skirt-back","type":"fixed","body0":{"part":"host","face":"back"},"body1":{"part":"skirt-back","face":"front"},"origin":{}}]}
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', 'back', 'host', 'front', { y: 'max' })
7
+ .on('display', 'host', 'front', { y: 'max' })
8
8
  .colour('display', 'screen', '#1b1f23')
9
9
  .box('digits', 540, 140, 5)
10
- .on('digits', 'back', 'display', 'front')
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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.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":"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.own-edge.y.0.times.value","display.on.host.along.z.1.sum.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.along.z.1.sum.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.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":"display.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"display.on.host.seat.z.0.times.value"}},{"id":"display.on.host.along.z.0.times","op":"mul@1","args":["display.dimension.depth","k.ratio.0_5"],"outputs":{"value":"display.on.host.along.z.0.times.value"}},{"id":"display.on.host.along.z.1.sum","op":"add@1","args":["display.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"display.on.host.along.z.1.sum.value"}},{"id":"display.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"display.on.host.edge.y.0.times.value"}},{"id":"display.on.host.own-edge.y.0.times","op":"mul@1","args":["display.dimension.height","host.k.centre"],"outputs":{"value":"display.on.host.own-edge.y.0.times.value"}},{"id":"display.seat.rigid","op":"rigid@1","args":["d.mm.0","display.on.host.edge.y.0.times.value","display.on.host.seat.z.0.times.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.0.times","op":"mul@1","args":["display.dimension.depth","k.ratio.0_5"],"outputs":{"value":"digits.on.display.seat.z.0.times.value"}},{"id":"digits.on.display.along.z.0.times","op":"mul@1","args":["digits.dimension.depth","k.ratio.0_5"],"outputs":{"value":"digits.on.display.along.z.0.times.value"}},{"id":"digits.on.display.along.z.1.sum","op":"add@1","args":["digits.on.display.along.z.0.times.value","d.mm.0"],"outputs":{"value":"digits.on.display.along.z.1.sum.value"}},{"id":"digits.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","digits.on.display.seat.z.0.times.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","face":"bottom"},"origin":{}},{"id":"display","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"display","face":"back"},"origin":{"align":{"y":"max"}}},{"id":"digits","type":"fixed","body0":{"part":"display","face":"front"},"body1":{"part":"digits","face":"back"},"origin":{}}]}
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, 'back', 'host', 'front', { x, y: 'max' }).colour(b, 'wheel', '#2f3437')
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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.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":"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.own-edge.x.0.times.value","bumper-left.on.host.own-edge.y.0.times.value","bumper-left.on.host.along.z.1.sum.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.own-edge.x.0.times.value","bumper-right.on.host.own-edge.y.0.times.value","bumper-right.on.host.along.z.1.sum.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.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":"bumper-left.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.seat.z.0.times.value"}},{"id":"bumper-left.on.host.along.z.0.times","op":"mul@1","args":["bumper-left.dimension.depth","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.along.z.0.times.value"}},{"id":"bumper-left.on.host.along.z.1.sum","op":"add@1","args":["bumper-left.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"bumper-left.on.host.along.z.1.sum.value"}},{"id":"bumper-left.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"bumper-left.on.host.edge.x.0.times.value"}},{"id":"bumper-left.on.host.own-edge.x.0.times","op":"mul@1","args":["bumper-left.dimension.width","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.own-edge.x.0.times.value"}},{"id":"bumper-left.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"bumper-left.on.host.edge.y.0.times.value"}},{"id":"bumper-left.on.host.own-edge.y.0.times","op":"mul@1","args":["bumper-left.dimension.height","host.k.centre"],"outputs":{"value":"bumper-left.on.host.own-edge.y.0.times.value"}},{"id":"bumper-left.seat.rigid","op":"rigid@1","args":["bumper-left.on.host.edge.x.0.times.value","bumper-left.on.host.edge.y.0.times.value","bumper-left.on.host.seat.z.0.times.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.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.seat.z.0.times.value"}},{"id":"bumper-right.on.host.along.z.0.times","op":"mul@1","args":["bumper-right.dimension.depth","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.along.z.0.times.value"}},{"id":"bumper-right.on.host.along.z.1.sum","op":"add@1","args":["bumper-right.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"bumper-right.on.host.along.z.1.sum.value"}},{"id":"bumper-right.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.edge.x.0.times.value"}},{"id":"bumper-right.on.host.own-edge.x.0.times","op":"mul@1","args":["bumper-right.dimension.width","host.k.centre"],"outputs":{"value":"bumper-right.on.host.own-edge.x.0.times.value"}},{"id":"bumper-right.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"bumper-right.on.host.edge.y.0.times.value"}},{"id":"bumper-right.on.host.own-edge.y.0.times","op":"mul@1","args":["bumper-right.dimension.height","host.k.centre"],"outputs":{"value":"bumper-right.on.host.own-edge.y.0.times.value"}},{"id":"bumper-right.seat.rigid","op":"rigid@1","args":["bumper-right.on.host.edge.x.0.times.value","bumper-right.on.host.edge.y.0.times.value","bumper-right.on.host.seat.z.0.times.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","face":"bottom"},"origin":{}},{"id":"bumper-left","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"bumper-left","face":"back"},"origin":{"align":{"x":"min","y":"max"}}},{"id":"bumper-right","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"bumper-right","face":"back"},"origin":{"align":{"x":"max","y":"max"}}}]}
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', 'bottom', 'host', 'top', { z: 'max' })
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":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"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.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":"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.along.y.1.sum.value","plate.on.host.own-edge.z.0.times.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.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":"plate.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"plate.on.host.seat.y.0.times.value"}},{"id":"plate.on.host.along.y.0.times","op":"mul@1","args":["plate.dimension.height","k.ratio.0_5"],"outputs":{"value":"plate.on.host.along.y.0.times.value"}},{"id":"plate.on.host.along.y.1.sum","op":"add@1","args":["plate.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"plate.on.host.along.y.1.sum.value"}},{"id":"plate.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"plate.on.host.edge.z.0.times.value"}},{"id":"plate.on.host.own-edge.z.0.times","op":"mul@1","args":["plate.dimension.depth","host.k.centre"],"outputs":{"value":"plate.on.host.own-edge.z.0.times.value"}},{"id":"plate.seat.rigid","op":"rigid@1","args":["d.mm.0","plate.on.host.seat.y.0.times.value","plate.on.host.edge.z.0.times.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","face":"bottom"},"origin":{}},{"id":"plate","type":"revolute","body0":{"part":"host","face":"top"},"body1":{"part":"plate","face":"bottom"},"origin":{"align":{"z":"max"}},"axis":"X","lowerLimit":-10,"upperLimit":10,"state":{"id":"tilt"}}]}
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"}}]}
@@ -39,8 +39,7 @@
39
39
  "face": "top"
40
40
  },
41
41
  "body1": {
42
- "part": "{id}-plate",
43
- "face": "bottom"
42
+ "part": "{id}-plate"
44
43
  },
45
44
  "origin": {
46
45
  "align": {