@things-factory/figure-service 10.1.200 → 10.1.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +16 -36
  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 +12 -28
  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
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_LEVELING_FEET","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":"foot-1.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-1.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-2.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-2.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-3.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-3.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-4.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-4.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"d.mm.80","unit":"mm","value":80},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"foot-1.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._1","unit":"ratio","value":-1},{"id":"foot-2.k.centre","unit":"ratio","value":-0.5},{"id":"foot-3.k.centre","unit":"ratio","value":-0.5},{"id":"foot-4.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":"foot-1.shape","op":"extrude@1","args":["foot-1.start.value","foot-1.dimension.length","foot-1.dimension.radius","foot-1.dimension.radius"],"outputs":{"shape":"foot-1.shapeValue"},"params":{"frame":"foot-1.local","axis":"y","section":"ellipse"}},{"id":"foot-1.pose","op":"rigid@1","args":["foot-1.dimension.radius","foot-1.on.host.along.y.1.sum.value","foot-1.dimension.radius","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-1.poseValue"},"params":{"from":"foot-1.local","to":"foot-1.seat"}},{"id":"foot-1","op":"place@1","args":["foot-1.shapeValue","foot-1.world.value"],"outputs":{"placed":"foot-1.placed"}},{"id":"foot-1.start","op":"mul@1","args":["foot-1.dimension.length","foot-1.k.centre"],"outputs":{"value":"foot-1.start.value"}},{"id":"foot-2.shape","op":"extrude@1","args":["foot-2.start.value","foot-2.dimension.length","foot-2.dimension.radius","foot-2.dimension.radius"],"outputs":{"shape":"foot-2.shapeValue"},"params":{"frame":"foot-2.local","axis":"y","section":"ellipse"}},{"id":"foot-2.pose","op":"rigid@1","args":["foot-2.dimension.radius","foot-2.on.host.along.y.1.sum.value","foot-2.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-2.poseValue"},"params":{"from":"foot-2.local","to":"foot-2.seat"}},{"id":"foot-2","op":"place@1","args":["foot-2.shapeValue","foot-2.world.value"],"outputs":{"placed":"foot-2.placed"}},{"id":"foot-2.start","op":"mul@1","args":["foot-2.dimension.length","foot-2.k.centre"],"outputs":{"value":"foot-2.start.value"}},{"id":"foot-3.shape","op":"extrude@1","args":["foot-3.start.value","foot-3.dimension.length","foot-3.dimension.radius","foot-3.dimension.radius"],"outputs":{"shape":"foot-3.shapeValue"},"params":{"frame":"foot-3.local","axis":"y","section":"ellipse"}},{"id":"foot-3.pose","op":"rigid@1","args":["foot-3.on.host.own-edge.x.0.times.value","foot-3.on.host.along.y.1.sum.value","foot-3.dimension.radius","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-3.poseValue"},"params":{"from":"foot-3.local","to":"foot-3.seat"}},{"id":"foot-3","op":"place@1","args":["foot-3.shapeValue","foot-3.world.value"],"outputs":{"placed":"foot-3.placed"}},{"id":"foot-3.start","op":"mul@1","args":["foot-3.dimension.length","foot-3.k.centre"],"outputs":{"value":"foot-3.start.value"}},{"id":"foot-4.shape","op":"extrude@1","args":["foot-4.start.value","foot-4.dimension.length","foot-4.dimension.radius","foot-4.dimension.radius"],"outputs":{"shape":"foot-4.shapeValue"},"params":{"frame":"foot-4.local","axis":"y","section":"ellipse"}},{"id":"foot-4.pose","op":"rigid@1","args":["foot-4.on.host.own-edge.x.0.times.value","foot-4.on.host.along.y.1.sum.value","foot-4.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-4.poseValue"},"params":{"from":"foot-4.local","to":"foot-4.seat"}},{"id":"foot-4","op":"place@1","args":["foot-4.shapeValue","foot-4.world.value"],"outputs":{"placed":"foot-4.placed"}},{"id":"foot-4.start","op":"mul@1","args":["foot-4.dimension.length","foot-4.k.centre"],"outputs":{"value":"foot-4.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.80"],"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":"foot-1.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-1.on.host.seat.y.0.times.value"}},{"id":"foot-1.on.host.along.y.0.times","op":"mul@1","args":["foot-1.dimension.length","host.k.centre"],"outputs":{"value":"foot-1.on.host.along.y.0.times.value"}},{"id":"foot-1.on.host.along.y.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"foot-1.on.host.along.y.1.times.value"}},{"id":"foot-1.on.host.along.y.1.sum","op":"add@1","args":["foot-1.on.host.along.y.0.times.value","foot-1.on.host.along.y.1.times.value"],"outputs":{"value":"foot-1.on.host.along.y.1.sum.value"}},{"id":"foot-1.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"foot-1.on.host.edge.x.0.times.value"}},{"id":"foot-1.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"foot-1.on.host.edge.z.0.times.value"}},{"id":"foot-1.seat.rigid","op":"rigid@1","args":["foot-1.on.host.edge.x.0.times.value","foot-1.on.host.seat.y.0.times.value","foot-1.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-1.seat.value"},"params":{"from":"foot-1.seat","to":"host.local"}},{"id":"foot-1.chain","op":"compose@1","args":["foot-1.seat.value","foot-1.poseValue"],"outputs":{"pose":"foot-1.chain.value"}},{"id":"foot-1.world","op":"compose@1","args":["host.chain.value","foot-1.chain.value"],"outputs":{"pose":"foot-1.world.value"}},{"id":"foot-2.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-2.on.host.seat.y.0.times.value"}},{"id":"foot-2.on.host.along.y.0.times","op":"mul@1","args":["foot-2.dimension.length","host.k.centre"],"outputs":{"value":"foot-2.on.host.along.y.0.times.value"}},{"id":"foot-2.on.host.along.y.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"foot-2.on.host.along.y.1.times.value"}},{"id":"foot-2.on.host.along.y.1.sum","op":"add@1","args":["foot-2.on.host.along.y.0.times.value","foot-2.on.host.along.y.1.times.value"],"outputs":{"value":"foot-2.on.host.along.y.1.sum.value"}},{"id":"foot-2.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"foot-2.on.host.edge.x.0.times.value"}},{"id":"foot-2.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"foot-2.on.host.edge.z.0.times.value"}},{"id":"foot-2.on.host.own-edge.z.0.times","op":"mul@1","args":["foot-2.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-2.on.host.own-edge.z.0.times.value"}},{"id":"foot-2.seat.rigid","op":"rigid@1","args":["foot-2.on.host.edge.x.0.times.value","foot-2.on.host.seat.y.0.times.value","foot-2.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-2.seat.value"},"params":{"from":"foot-2.seat","to":"host.local"}},{"id":"foot-2.chain","op":"compose@1","args":["foot-2.seat.value","foot-2.poseValue"],"outputs":{"pose":"foot-2.chain.value"}},{"id":"foot-2.world","op":"compose@1","args":["host.chain.value","foot-2.chain.value"],"outputs":{"pose":"foot-2.world.value"}},{"id":"foot-3.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-3.on.host.seat.y.0.times.value"}},{"id":"foot-3.on.host.along.y.0.times","op":"mul@1","args":["foot-3.dimension.length","host.k.centre"],"outputs":{"value":"foot-3.on.host.along.y.0.times.value"}},{"id":"foot-3.on.host.along.y.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"foot-3.on.host.along.y.1.times.value"}},{"id":"foot-3.on.host.along.y.1.sum","op":"add@1","args":["foot-3.on.host.along.y.0.times.value","foot-3.on.host.along.y.1.times.value"],"outputs":{"value":"foot-3.on.host.along.y.1.sum.value"}},{"id":"foot-3.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"foot-3.on.host.edge.x.0.times.value"}},{"id":"foot-3.on.host.own-edge.x.0.times","op":"mul@1","args":["foot-3.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-3.on.host.own-edge.x.0.times.value"}},{"id":"foot-3.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"foot-3.on.host.edge.z.0.times.value"}},{"id":"foot-3.seat.rigid","op":"rigid@1","args":["foot-3.on.host.edge.x.0.times.value","foot-3.on.host.seat.y.0.times.value","foot-3.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-3.seat.value"},"params":{"from":"foot-3.seat","to":"host.local"}},{"id":"foot-3.chain","op":"compose@1","args":["foot-3.seat.value","foot-3.poseValue"],"outputs":{"pose":"foot-3.chain.value"}},{"id":"foot-3.world","op":"compose@1","args":["host.chain.value","foot-3.chain.value"],"outputs":{"pose":"foot-3.world.value"}},{"id":"foot-4.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-4.on.host.seat.y.0.times.value"}},{"id":"foot-4.on.host.along.y.0.times","op":"mul@1","args":["foot-4.dimension.length","host.k.centre"],"outputs":{"value":"foot-4.on.host.along.y.0.times.value"}},{"id":"foot-4.on.host.along.y.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"foot-4.on.host.along.y.1.times.value"}},{"id":"foot-4.on.host.along.y.1.sum","op":"add@1","args":["foot-4.on.host.along.y.0.times.value","foot-4.on.host.along.y.1.times.value"],"outputs":{"value":"foot-4.on.host.along.y.1.sum.value"}},{"id":"foot-4.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"foot-4.on.host.edge.x.0.times.value"}},{"id":"foot-4.on.host.own-edge.x.0.times","op":"mul@1","args":["foot-4.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-4.on.host.own-edge.x.0.times.value"}},{"id":"foot-4.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"foot-4.on.host.edge.z.0.times.value"}},{"id":"foot-4.on.host.own-edge.z.0.times","op":"mul@1","args":["foot-4.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-4.on.host.own-edge.z.0.times.value"}},{"id":"foot-4.seat.rigid","op":"rigid@1","args":["foot-4.on.host.edge.x.0.times.value","foot-4.on.host.seat.y.0.times.value","foot-4.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-4.seat.value"},"params":{"from":"foot-4.seat","to":"host.local"}},{"id":"foot-4.chain","op":"compose@1","args":["foot-4.seat.value","foot-4.poseValue"],"outputs":{"pose":"foot-4.chain.value"}},{"id":"foot-4.world","op":"compose@1","args":["host.chain.value","foot-4.chain.value"],"outputs":{"pose":"foot-4.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"foot-1.dimension.radius":40,"foot-1.dimension.length":80,"foot-2.dimension.radius":40,"foot-2.dimension.length":80,"foot-3.dimension.radius":40,"foot-3.dimension.length":80,"foot-4.dimension.radius":40,"foot-4.dimension.length":80},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-7d8790":"#7d8790"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"foot-1","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-2","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-3","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-4","material":{"token":"palette.tpl-7d8790"},"segments":12}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{"gap":80}},{"id":"foot-1","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-1","face":"top"},"origin":{"align":{"x":"min","z":"min"}}},{"id":"foot-2","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-2","face":"top"},"origin":{"align":{"x":"min","z":"max"}}},{"id":"foot-3","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-3","face":"top"},"origin":{"align":{"x":"max","z":"min"}}},{"id":"foot-4","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-4","face":"top"},"origin":{"align":{"x":"max","z":"max"}}}]}
1
+ {"version":"figure-asset-1","name":"TPL_LEVELING_FEET","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":"foot-1.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-1.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-2.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-2.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-3.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-3.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-4.dimension.radius","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"foot-4.dimension.length","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"d.mm.80","unit":"mm","value":80},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"foot-1.k.centre","unit":"ratio","value":-0.5},{"id":"foot-2.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._1","unit":"ratio","value":-1},{"id":"foot-3.k.centre","unit":"ratio","value":-0.5},{"id":"foot-4.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.s0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"foot-1.shape","op":"extrude@1","args":["foot-1.start.value","foot-1.dimension.length","foot-1.dimension.radius","foot-1.dimension.radius"],"outputs":{"shape":"foot-1.shapeValue"},"params":{"frame":"foot-1.local","axis":"y","section":"ellipse"}},{"id":"foot-1.pose","op":"rigid@1","args":["foot-1.dimension.radius","foot-1.on.host.pose.y.t0.value","foot-1.dimension.radius","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-1.poseValue"},"params":{"from":"foot-1.local","to":"foot-1.seat"}},{"id":"foot-1","op":"place@1","args":["foot-1.shapeValue","foot-1.world.value"],"outputs":{"placed":"foot-1.placed"}},{"id":"foot-1.start","op":"mul@1","args":["foot-1.dimension.length","foot-1.k.centre"],"outputs":{"value":"foot-1.start.value"}},{"id":"foot-2.shape","op":"extrude@1","args":["foot-2.start.value","foot-2.dimension.length","foot-2.dimension.radius","foot-2.dimension.radius"],"outputs":{"shape":"foot-2.shapeValue"},"params":{"frame":"foot-2.local","axis":"y","section":"ellipse"}},{"id":"foot-2.pose","op":"rigid@1","args":["foot-2.dimension.radius","foot-2.on.host.pose.y.t0.value","foot-2.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-2.poseValue"},"params":{"from":"foot-2.local","to":"foot-2.seat"}},{"id":"foot-2","op":"place@1","args":["foot-2.shapeValue","foot-2.world.value"],"outputs":{"placed":"foot-2.placed"}},{"id":"foot-2.start","op":"mul@1","args":["foot-2.dimension.length","foot-2.k.centre"],"outputs":{"value":"foot-2.start.value"}},{"id":"foot-3.shape","op":"extrude@1","args":["foot-3.start.value","foot-3.dimension.length","foot-3.dimension.radius","foot-3.dimension.radius"],"outputs":{"shape":"foot-3.shapeValue"},"params":{"frame":"foot-3.local","axis":"y","section":"ellipse"}},{"id":"foot-3.pose","op":"rigid@1","args":["foot-3.on.host.pose.x.t0.value","foot-3.on.host.pose.y.t0.value","foot-3.dimension.radius","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-3.poseValue"},"params":{"from":"foot-3.local","to":"foot-3.seat"}},{"id":"foot-3","op":"place@1","args":["foot-3.shapeValue","foot-3.world.value"],"outputs":{"placed":"foot-3.placed"}},{"id":"foot-3.start","op":"mul@1","args":["foot-3.dimension.length","foot-3.k.centre"],"outputs":{"value":"foot-3.start.value"}},{"id":"foot-4.shape","op":"extrude@1","args":["foot-4.start.value","foot-4.dimension.length","foot-4.dimension.radius","foot-4.dimension.radius"],"outputs":{"shape":"foot-4.shapeValue"},"params":{"frame":"foot-4.local","axis":"y","section":"ellipse"}},{"id":"foot-4.pose","op":"rigid@1","args":["foot-4.on.host.pose.x.t0.value","foot-4.on.host.pose.y.t0.value","foot-4.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-4.poseValue"},"params":{"from":"foot-4.local","to":"foot-4.seat"}},{"id":"foot-4","op":"place@1","args":["foot-4.shapeValue","foot-4.world.value"],"outputs":{"placed":"foot-4.placed"}},{"id":"foot-4.start","op":"mul@1","args":["foot-4.dimension.length","foot-4.k.centre"],"outputs":{"value":"foot-4.start.value"}},{"id":"host.on.plane.pose.y.t1","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t1.value"}},{"id":"host.on.plane.pose.y.s0","op":"add@1","args":["d.mm.80","host.on.plane.pose.y.t1.value"],"outputs":{"value":"host.on.plane.pose.y.s0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"foot-1.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"foot-1.on.host.seat.x.t0.value"}},{"id":"foot-1.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-1.on.host.seat.y.t0.value"}},{"id":"foot-1.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"foot-1.on.host.seat.z.t0.value"}},{"id":"foot-1.on.host.pose.y.t0","op":"mul@1","args":["foot-1.dimension.length","host.k.centre"],"outputs":{"value":"foot-1.on.host.pose.y.t0.value"}},{"id":"foot-1.seat.rigid","op":"rigid@1","args":["foot-1.on.host.seat.x.t0.value","foot-1.on.host.seat.y.t0.value","foot-1.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-1.seat.value"},"params":{"from":"foot-1.seat","to":"host.local"}},{"id":"foot-1.chain","op":"compose@1","args":["foot-1.seat.value","foot-1.poseValue"],"outputs":{"pose":"foot-1.chain.value"}},{"id":"foot-1.world","op":"compose@1","args":["host.chain.value","foot-1.chain.value"],"outputs":{"pose":"foot-1.world.value"}},{"id":"foot-2.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"foot-2.on.host.seat.x.t0.value"}},{"id":"foot-2.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-2.on.host.seat.y.t0.value"}},{"id":"foot-2.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"foot-2.on.host.seat.z.t0.value"}},{"id":"foot-2.on.host.pose.y.t0","op":"mul@1","args":["foot-2.dimension.length","host.k.centre"],"outputs":{"value":"foot-2.on.host.pose.y.t0.value"}},{"id":"foot-2.on.host.pose.z.t0","op":"mul@1","args":["foot-2.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-2.on.host.pose.z.t0.value"}},{"id":"foot-2.seat.rigid","op":"rigid@1","args":["foot-2.on.host.seat.x.t0.value","foot-2.on.host.seat.y.t0.value","foot-2.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-2.seat.value"},"params":{"from":"foot-2.seat","to":"host.local"}},{"id":"foot-2.chain","op":"compose@1","args":["foot-2.seat.value","foot-2.poseValue"],"outputs":{"pose":"foot-2.chain.value"}},{"id":"foot-2.world","op":"compose@1","args":["host.chain.value","foot-2.chain.value"],"outputs":{"pose":"foot-2.world.value"}},{"id":"foot-3.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"foot-3.on.host.seat.x.t0.value"}},{"id":"foot-3.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-3.on.host.seat.y.t0.value"}},{"id":"foot-3.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","host.k.centre"],"outputs":{"value":"foot-3.on.host.seat.z.t0.value"}},{"id":"foot-3.on.host.pose.x.t0","op":"mul@1","args":["foot-3.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-3.on.host.pose.x.t0.value"}},{"id":"foot-3.on.host.pose.y.t0","op":"mul@1","args":["foot-3.dimension.length","host.k.centre"],"outputs":{"value":"foot-3.on.host.pose.y.t0.value"}},{"id":"foot-3.seat.rigid","op":"rigid@1","args":["foot-3.on.host.seat.x.t0.value","foot-3.on.host.seat.y.t0.value","foot-3.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-3.seat.value"},"params":{"from":"foot-3.seat","to":"host.local"}},{"id":"foot-3.chain","op":"compose@1","args":["foot-3.seat.value","foot-3.poseValue"],"outputs":{"pose":"foot-3.chain.value"}},{"id":"foot-3.world","op":"compose@1","args":["host.chain.value","foot-3.chain.value"],"outputs":{"pose":"foot-3.world.value"}},{"id":"foot-4.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"foot-4.on.host.seat.x.t0.value"}},{"id":"foot-4.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"foot-4.on.host.seat.y.t0.value"}},{"id":"foot-4.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"foot-4.on.host.seat.z.t0.value"}},{"id":"foot-4.on.host.pose.x.t0","op":"mul@1","args":["foot-4.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-4.on.host.pose.x.t0.value"}},{"id":"foot-4.on.host.pose.y.t0","op":"mul@1","args":["foot-4.dimension.length","host.k.centre"],"outputs":{"value":"foot-4.on.host.pose.y.t0.value"}},{"id":"foot-4.on.host.pose.z.t0","op":"mul@1","args":["foot-4.dimension.radius","k.ratio._1"],"outputs":{"value":"foot-4.on.host.pose.z.t0.value"}},{"id":"foot-4.seat.rigid","op":"rigid@1","args":["foot-4.on.host.seat.x.t0.value","foot-4.on.host.seat.y.t0.value","foot-4.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"foot-4.seat.value"},"params":{"from":"foot-4.seat","to":"host.local"}},{"id":"foot-4.chain","op":"compose@1","args":["foot-4.seat.value","foot-4.poseValue"],"outputs":{"pose":"foot-4.chain.value"}},{"id":"foot-4.world","op":"compose@1","args":["host.chain.value","foot-4.chain.value"],"outputs":{"pose":"foot-4.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"foot-1.dimension.radius":40,"foot-1.dimension.length":80,"foot-2.dimension.radius":40,"foot-2.dimension.length":80,"foot-3.dimension.radius":40,"foot-3.dimension.length":80,"foot-4.dimension.radius":40,"foot-4.dimension.length":80},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-7d8790":"#7d8790"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"foot-1","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-2","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-3","material":{"token":"palette.tpl-7d8790"},"segments":12},{"target":"foot-4","material":{"token":"palette.tpl-7d8790"},"segments":12}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{"gap":80}},{"id":"foot-1","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-1"},"origin":{"align":{"x":"min","z":"min"}}},{"id":"foot-2","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-2"},"origin":{"align":{"x":"min","z":"max"}}},{"id":"foot-3","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-3"},"origin":{"align":{"x":"max","z":"min"}}},{"id":"foot-4","type":"fixed","body0":{"part":"host","face":"bottom"},"body1":{"part":"foot-4"},"origin":{"align":{"x":"max","z":"max"}}}]}
@@ -95,8 +95,7 @@
95
95
  "face": "bottom"
96
96
  },
97
97
  "body1": {
98
- "part": "{id}-foot-1",
99
- "face": "top"
98
+ "part": "{id}-foot-1"
100
99
  },
101
100
  "origin": {
102
101
  "align": {
@@ -116,8 +115,7 @@
116
115
  "face": "bottom"
117
116
  },
118
117
  "body1": {
119
- "part": "{id}-foot-2",
120
- "face": "top"
118
+ "part": "{id}-foot-2"
121
119
  },
122
120
  "origin": {
123
121
  "align": {
@@ -137,8 +135,7 @@
137
135
  "face": "bottom"
138
136
  },
139
137
  "body1": {
140
- "part": "{id}-foot-3",
141
- "face": "top"
138
+ "part": "{id}-foot-3"
142
139
  },
143
140
  "origin": {
144
141
  "align": {
@@ -158,8 +155,7 @@
158
155
  "face": "bottom"
159
156
  },
160
157
  "body1": {
161
- "part": "{id}-foot-4",
162
- "face": "top"
158
+ "part": "{id}-foot-4"
163
159
  },
164
160
  "origin": {
165
161
  "align": {
@@ -6,7 +6,7 @@ export default function build() {
6
6
  m.box('deck', 2700, 40, 720)
7
7
  .follow('deck', 'x', 'host', 'x', 0.9)
8
8
  .follow('deck', 'z', 'host', 'z', 0.9)
9
- .on('deck', 'bottom', 'host', 'top')
9
+ .on('deck', 'host', 'top')
10
10
  .colour('deck', 'palette.deck', '#6c8ea8')
11
11
  .moves('deck', { type: 'prismatic', axis: 'Y', lower: 0, upper: 300, state: 'lift' })
12
12
  return m.asset
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_LIFT_UPDOWN","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":"deck.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lift","unit":"mm","min":0,"max":300,"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":"deck.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_9","unit":"ratio","value":0.9},{"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.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"deck.shape","op":"extrude@1","args":["deck.start.value","deck.dimension.height","deck.dimension.x.value","deck.dimension.z.value"],"outputs":{"shape":"deck.shapeValue"},"params":{"frame":"deck.local","axis":"y","section":"rectangle"}},{"id":"deck.pose","op":"rigid@1","args":["d.mm.0","deck.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"deck.poseValue"},"params":{"from":"deck.local","to":"deck.seat"}},{"id":"deck","op":"place@1","args":["deck.shapeValue","deck.world.value"],"outputs":{"placed":"deck.placed"}},{"id":"deck.start","op":"mul@1","args":["deck.dimension.height","deck.k.centre"],"outputs":{"value":"deck.start.value"}},{"id":"deck.dimension.x","op":"mul@1","args":["deck.x.follows.times.value","k.ratio.1"],"outputs":{"value":"deck.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"deck.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_9"],"outputs":{"value":"deck.x.follows.times.value"}},{"id":"deck.dimension.z","op":"mul@1","args":["deck.z.follows.times.value","k.ratio.1"],"outputs":{"value":"deck.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"deck.z.follows.times","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_9"],"outputs":{"value":"deck.z.follows.times.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":"deck.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"deck.on.host.seat.y.0.times.value"}},{"id":"deck.on.host.along.y.0.times","op":"mul@1","args":["deck.dimension.height","k.ratio.0_5"],"outputs":{"value":"deck.on.host.along.y.0.times.value"}},{"id":"deck.on.host.along.y.1.sum","op":"add@1","args":["deck.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"deck.on.host.along.y.1.sum.value"}},{"id":"deck.seat.rigid","op":"rigid@1","args":["d.mm.0","deck.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"deck.seat.value"},"params":{"from":"deck.joint","to":"host.local"}},{"id":"deck.chain","op":"compose@1","args":["deck.seat.value","deck.turned.value"],"outputs":{"pose":"deck.chain.value"}},{"id":"deck.world","op":"compose@1","args":["host.chain.value","deck.chain.value"],"outputs":{"pose":"deck.world.value"}},{"id":"deck.motion","op":"axis-slide@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","lift"],"outputs":{"pose":"deck.motion.value"},"params":{"from":"deck.seat","to":"deck.joint"}},{"id":"deck.turned","op":"compose@1","args":["deck.motion.value","deck.poseValue"],"outputs":{"pose":"deck.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"deck.dimension.height":40},"stateDefaults":{"lift":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-6c8ea8":"#6c8ea8"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"deck","material":{"token":"palette.tpl-6c8ea8"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"deck","type":"prismatic","body0":{"part":"host","face":"top"},"body1":{"part":"deck","face":"bottom"},"origin":{},"axis":"Y","lowerLimit":0,"upperLimit":300,"state":{"id":"lift"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_LIFT_UPDOWN","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":"deck.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lift","unit":"mm","min":0,"max":300,"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":"deck.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_9","unit":"ratio","value":0.9},{"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.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"deck.shape","op":"extrude@1","args":["deck.start.value","deck.dimension.height","deck.dimension.x.value","deck.dimension.z.value"],"outputs":{"shape":"deck.shapeValue"},"params":{"frame":"deck.local","axis":"y","section":"rectangle"}},{"id":"deck.pose","op":"rigid@1","args":["d.mm.0","deck.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"deck.poseValue"},"params":{"from":"deck.local","to":"deck.seat"}},{"id":"deck","op":"place@1","args":["deck.shapeValue","deck.world.value"],"outputs":{"placed":"deck.placed"}},{"id":"deck.start","op":"mul@1","args":["deck.dimension.height","deck.k.centre"],"outputs":{"value":"deck.start.value"}},{"id":"deck.dimension.x","op":"mul@1","args":["deck.x.follows.times.value","k.ratio.1"],"outputs":{"value":"deck.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"deck.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_9"],"outputs":{"value":"deck.x.follows.times.value"}},{"id":"deck.dimension.z","op":"mul@1","args":["deck.z.follows.times.value","k.ratio.1"],"outputs":{"value":"deck.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"deck.z.follows.times","op":"mul@1","args":["host.dimension.z.value","k.ratio.0_9"],"outputs":{"value":"deck.z.follows.times.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":"deck.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"deck.on.host.seat.y.t0.value"}},{"id":"deck.on.host.pose.y.t0","op":"mul@1","args":["deck.dimension.height","k.ratio.0_5"],"outputs":{"value":"deck.on.host.pose.y.t0.value"}},{"id":"deck.seat.rigid","op":"rigid@1","args":["d.mm.0","deck.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"deck.seat.value"},"params":{"from":"deck.joint","to":"host.local"}},{"id":"deck.chain","op":"compose@1","args":["deck.seat.value","deck.turned.value"],"outputs":{"pose":"deck.chain.value"}},{"id":"deck.world","op":"compose@1","args":["host.chain.value","deck.chain.value"],"outputs":{"pose":"deck.world.value"}},{"id":"deck.motion","op":"axis-slide@1","args":["axis.ratio.0","k.ratio.1","axis.ratio.0","lift"],"outputs":{"pose":"deck.motion.value"},"params":{"from":"deck.seat","to":"deck.joint"}},{"id":"deck.turned","op":"compose@1","args":["deck.motion.value","deck.poseValue"],"outputs":{"pose":"deck.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"deck.dimension.height":40},"stateDefaults":{"lift":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-6c8ea8":"#6c8ea8"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"deck","material":{"token":"palette.tpl-6c8ea8"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"deck","type":"prismatic","body0":{"part":"host","face":"top"},"body1":{"part":"deck"},"origin":{},"axis":"Y","lowerLimit":0,"upperLimit":300,"state":{"id":"lift"}}]}
@@ -79,8 +79,7 @@
79
79
  "face": "top"
80
80
  },
81
81
  "body1": {
82
- "part": "{id}-deck",
83
- "face": "bottom"
82
+ "part": "{id}-deck"
84
83
  },
85
84
  "origin": {},
86
85
  "axis": "Y",
@@ -5,7 +5,7 @@ export default function build() {
5
5
  const m = new Model(host({ x: 1600, y: 1400, z: 1000 }, 'TPL_LIGHT_CURTAIN'))
6
6
  for (const [c, x] of [['emitter', 'min'], ['receiver', 'max']] as const)
7
7
  m.box(c, 40, 1200, 40)
8
- .on(c, 'back', 'host', 'front', { x, y: 'min' })
8
+ .on(c, 'host', 'front', { x, y: 'min' })
9
9
  .colour(c, 'palette.curtain', '#23272b')
10
10
  return m.asset
11
11
  }
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_LIGHT_CURTAIN","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":"emitter.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"emitter.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"emitter.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.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":"emitter.k.centre","unit":"ratio","value":-0.5},{"id":"receiver.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":"emitter.shape","op":"extrude@1","args":["emitter.start.value","emitter.dimension.height","emitter.dimension.width","emitter.dimension.depth"],"outputs":{"shape":"emitter.shapeValue"},"params":{"frame":"emitter.local","axis":"y","section":"rectangle"}},{"id":"emitter.pose","op":"rigid@1","args":["emitter.on.host.own-edge.x.0.times.value","emitter.on.host.own-edge.y.0.times.value","emitter.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"emitter.poseValue"},"params":{"from":"emitter.local","to":"emitter.seat"}},{"id":"emitter","op":"place@1","args":["emitter.shapeValue","emitter.world.value"],"outputs":{"placed":"emitter.placed"}},{"id":"emitter.start","op":"mul@1","args":["emitter.dimension.height","emitter.k.centre"],"outputs":{"value":"emitter.start.value"}},{"id":"receiver.shape","op":"extrude@1","args":["receiver.start.value","receiver.dimension.height","receiver.dimension.width","receiver.dimension.depth"],"outputs":{"shape":"receiver.shapeValue"},"params":{"frame":"receiver.local","axis":"y","section":"rectangle"}},{"id":"receiver.pose","op":"rigid@1","args":["receiver.on.host.own-edge.x.0.times.value","receiver.on.host.own-edge.y.0.times.value","receiver.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"receiver.poseValue"},"params":{"from":"receiver.local","to":"receiver.seat"}},{"id":"receiver","op":"place@1","args":["receiver.shapeValue","receiver.world.value"],"outputs":{"placed":"receiver.placed"}},{"id":"receiver.start","op":"mul@1","args":["receiver.dimension.height","receiver.k.centre"],"outputs":{"value":"receiver.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":"emitter.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.seat.z.0.times.value"}},{"id":"emitter.on.host.along.z.0.times","op":"mul@1","args":["emitter.dimension.depth","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.along.z.0.times.value"}},{"id":"emitter.on.host.along.z.1.sum","op":"add@1","args":["emitter.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"emitter.on.host.along.z.1.sum.value"}},{"id":"emitter.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"emitter.on.host.edge.x.0.times.value"}},{"id":"emitter.on.host.own-edge.x.0.times","op":"mul@1","args":["emitter.dimension.width","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.own-edge.x.0.times.value"}},{"id":"emitter.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"emitter.on.host.edge.y.0.times.value"}},{"id":"emitter.on.host.own-edge.y.0.times","op":"mul@1","args":["emitter.dimension.height","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.own-edge.y.0.times.value"}},{"id":"emitter.seat.rigid","op":"rigid@1","args":["emitter.on.host.edge.x.0.times.value","emitter.on.host.edge.y.0.times.value","emitter.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"emitter.seat.value"},"params":{"from":"emitter.seat","to":"host.local"}},{"id":"emitter.chain","op":"compose@1","args":["emitter.seat.value","emitter.poseValue"],"outputs":{"pose":"emitter.chain.value"}},{"id":"emitter.world","op":"compose@1","args":["host.chain.value","emitter.chain.value"],"outputs":{"pose":"emitter.world.value"}},{"id":"receiver.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.seat.z.0.times.value"}},{"id":"receiver.on.host.along.z.0.times","op":"mul@1","args":["receiver.dimension.depth","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.along.z.0.times.value"}},{"id":"receiver.on.host.along.z.1.sum","op":"add@1","args":["receiver.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"receiver.on.host.along.z.1.sum.value"}},{"id":"receiver.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.edge.x.0.times.value"}},{"id":"receiver.on.host.own-edge.x.0.times","op":"mul@1","args":["receiver.dimension.width","host.k.centre"],"outputs":{"value":"receiver.on.host.own-edge.x.0.times.value"}},{"id":"receiver.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"receiver.on.host.edge.y.0.times.value"}},{"id":"receiver.on.host.own-edge.y.0.times","op":"mul@1","args":["receiver.dimension.height","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.own-edge.y.0.times.value"}},{"id":"receiver.seat.rigid","op":"rigid@1","args":["receiver.on.host.edge.x.0.times.value","receiver.on.host.edge.y.0.times.value","receiver.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"receiver.seat.value"},"params":{"from":"receiver.seat","to":"host.local"}},{"id":"receiver.chain","op":"compose@1","args":["receiver.seat.value","receiver.poseValue"],"outputs":{"pose":"receiver.chain.value"}},{"id":"receiver.world","op":"compose@1","args":["host.chain.value","receiver.chain.value"],"outputs":{"pose":"receiver.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"emitter.dimension.width":40,"emitter.dimension.height":1200,"emitter.dimension.depth":40,"receiver.dimension.width":40,"receiver.dimension.height":1200,"receiver.dimension.depth":40},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-23272b":"#23272b"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"emitter","material":{"token":"palette.tpl-23272b"}},{"target":"receiver","material":{"token":"palette.tpl-23272b"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"emitter","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"emitter","face":"back"},"origin":{"align":{"x":"min","y":"min"}}},{"id":"receiver","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"receiver","face":"back"},"origin":{"align":{"x":"max","y":"min"}}}]}
1
+ {"version":"figure-asset-1","name":"TPL_LIGHT_CURTAIN","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":"emitter.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"emitter.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"emitter.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"receiver.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":"emitter.k.centre","unit":"ratio","value":-0.5},{"id":"receiver.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":"emitter.shape","op":"extrude@1","args":["emitter.start.value","emitter.dimension.height","emitter.dimension.width","emitter.dimension.depth"],"outputs":{"shape":"emitter.shapeValue"},"params":{"frame":"emitter.local","axis":"y","section":"rectangle"}},{"id":"emitter.pose","op":"rigid@1","args":["emitter.on.host.pose.x.t0.value","emitter.on.host.pose.y.t0.value","emitter.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"emitter.poseValue"},"params":{"from":"emitter.local","to":"emitter.seat"}},{"id":"emitter","op":"place@1","args":["emitter.shapeValue","emitter.world.value"],"outputs":{"placed":"emitter.placed"}},{"id":"emitter.start","op":"mul@1","args":["emitter.dimension.height","emitter.k.centre"],"outputs":{"value":"emitter.start.value"}},{"id":"receiver.shape","op":"extrude@1","args":["receiver.start.value","receiver.dimension.height","receiver.dimension.width","receiver.dimension.depth"],"outputs":{"shape":"receiver.shapeValue"},"params":{"frame":"receiver.local","axis":"y","section":"rectangle"}},{"id":"receiver.pose","op":"rigid@1","args":["receiver.on.host.pose.x.t0.value","receiver.on.host.pose.y.t0.value","receiver.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"receiver.poseValue"},"params":{"from":"receiver.local","to":"receiver.seat"}},{"id":"receiver","op":"place@1","args":["receiver.shapeValue","receiver.world.value"],"outputs":{"placed":"receiver.placed"}},{"id":"receiver.start","op":"mul@1","args":["receiver.dimension.height","receiver.k.centre"],"outputs":{"value":"receiver.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":"emitter.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"emitter.on.host.seat.x.t0.value"}},{"id":"emitter.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"emitter.on.host.seat.y.t0.value"}},{"id":"emitter.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.seat.z.t0.value"}},{"id":"emitter.on.host.pose.x.t0","op":"mul@1","args":["emitter.dimension.width","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.pose.x.t0.value"}},{"id":"emitter.on.host.pose.y.t0","op":"mul@1","args":["emitter.dimension.height","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.pose.y.t0.value"}},{"id":"emitter.on.host.pose.z.t0","op":"mul@1","args":["emitter.dimension.depth","k.ratio.0_5"],"outputs":{"value":"emitter.on.host.pose.z.t0.value"}},{"id":"emitter.seat.rigid","op":"rigid@1","args":["emitter.on.host.seat.x.t0.value","emitter.on.host.seat.y.t0.value","emitter.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"emitter.seat.value"},"params":{"from":"emitter.seat","to":"host.local"}},{"id":"emitter.chain","op":"compose@1","args":["emitter.seat.value","emitter.poseValue"],"outputs":{"pose":"emitter.chain.value"}},{"id":"emitter.world","op":"compose@1","args":["host.chain.value","emitter.chain.value"],"outputs":{"pose":"emitter.world.value"}},{"id":"receiver.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.seat.x.t0.value"}},{"id":"receiver.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"receiver.on.host.seat.y.t0.value"}},{"id":"receiver.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.seat.z.t0.value"}},{"id":"receiver.on.host.pose.x.t0","op":"mul@1","args":["receiver.dimension.width","host.k.centre"],"outputs":{"value":"receiver.on.host.pose.x.t0.value"}},{"id":"receiver.on.host.pose.y.t0","op":"mul@1","args":["receiver.dimension.height","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.pose.y.t0.value"}},{"id":"receiver.on.host.pose.z.t0","op":"mul@1","args":["receiver.dimension.depth","k.ratio.0_5"],"outputs":{"value":"receiver.on.host.pose.z.t0.value"}},{"id":"receiver.seat.rigid","op":"rigid@1","args":["receiver.on.host.seat.x.t0.value","receiver.on.host.seat.y.t0.value","receiver.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"receiver.seat.value"},"params":{"from":"receiver.seat","to":"host.local"}},{"id":"receiver.chain","op":"compose@1","args":["receiver.seat.value","receiver.poseValue"],"outputs":{"pose":"receiver.chain.value"}},{"id":"receiver.world","op":"compose@1","args":["host.chain.value","receiver.chain.value"],"outputs":{"pose":"receiver.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"emitter.dimension.width":40,"emitter.dimension.height":1200,"emitter.dimension.depth":40,"receiver.dimension.width":40,"receiver.dimension.height":1200,"receiver.dimension.depth":40},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-23272b":"#23272b"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"emitter","material":{"token":"palette.tpl-23272b"}},{"target":"receiver","material":{"token":"palette.tpl-23272b"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"emitter","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"emitter"},"origin":{"align":{"x":"min","y":"min"}}},{"id":"receiver","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"receiver"},"origin":{"align":{"x":"max","y":"min"}}}]}
@@ -71,8 +71,7 @@
71
71
  "face": "front"
72
72
  },
73
73
  "body1": {
74
- "part": "{id}-emitter",
75
- "face": "back"
74
+ "part": "{id}-emitter"
76
75
  },
77
76
  "origin": {
78
77
  "align": {
@@ -92,8 +91,7 @@
92
91
  "face": "front"
93
92
  },
94
93
  "body1": {
95
- "part": "{id}-receiver",
96
- "face": "back"
94
+ "part": "{id}-receiver"
97
95
  },
98
96
  "origin": {
99
97
  "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: 3000, y: 700, z: 800 }, 'TPL_LIMIT_SWITCH'))
6
6
  m.box('body', 40, 60, 30)
7
- .on('body', 'bottom', 'host', 'top', { x: 'max', z: 'max' })
7
+ .on('body', 'host', 'top', { x: 'max', z: 'max' })
8
8
  .colour('body', 'estop-base', '#f2c200')
9
9
  .box('lever', 10, 80, 10)
10
- .on('lever', 'bottom', 'body', 'top')
10
+ .on('lever', 'body', 'top')
11
11
  .colour('lever', 'rod', '#d0d4d8')
12
12
  .moves('lever', { type: 'revolute', axis: 'Z', lower: -30, upper: 0, state: 'trip' })
13
13
  return m.asset
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_LIMIT_SWITCH","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":"body.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"body.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"body.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"trip","unit":"deg","min":-30,"max":0,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"body.k.centre","unit":"ratio","value":-0.5},{"id":"lever.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":"body.shape","op":"extrude@1","args":["body.start.value","body.dimension.height","body.dimension.width","body.dimension.depth"],"outputs":{"shape":"body.shapeValue"},"params":{"frame":"body.local","axis":"y","section":"rectangle"}},{"id":"body.pose","op":"rigid@1","args":["body.on.host.own-edge.x.0.times.value","body.on.host.along.y.1.sum.value","body.on.host.own-edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"body.poseValue"},"params":{"from":"body.local","to":"body.seat"}},{"id":"body","op":"place@1","args":["body.shapeValue","body.world.value"],"outputs":{"placed":"body.placed"}},{"id":"body.start","op":"mul@1","args":["body.dimension.height","body.k.centre"],"outputs":{"value":"body.start.value"}},{"id":"lever.shape","op":"extrude@1","args":["lever.start.value","lever.dimension.height","lever.dimension.width","lever.dimension.depth"],"outputs":{"shape":"lever.shapeValue"},"params":{"frame":"lever.local","axis":"y","section":"rectangle"}},{"id":"lever.pose","op":"rigid@1","args":["d.mm.0","lever.on.body.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"lever.poseValue"},"params":{"from":"lever.local","to":"lever.seat"}},{"id":"lever","op":"place@1","args":["lever.shapeValue","lever.world.value"],"outputs":{"placed":"lever.placed"}},{"id":"lever.start","op":"mul@1","args":["lever.dimension.height","lever.k.centre"],"outputs":{"value":"lever.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":"body.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"body.on.host.seat.y.0.times.value"}},{"id":"body.on.host.along.y.0.times","op":"mul@1","args":["body.dimension.height","k.ratio.0_5"],"outputs":{"value":"body.on.host.along.y.0.times.value"}},{"id":"body.on.host.along.y.1.sum","op":"add@1","args":["body.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"body.on.host.along.y.1.sum.value"}},{"id":"body.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"body.on.host.edge.x.0.times.value"}},{"id":"body.on.host.own-edge.x.0.times","op":"mul@1","args":["body.dimension.width","host.k.centre"],"outputs":{"value":"body.on.host.own-edge.x.0.times.value"}},{"id":"body.on.host.edge.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"body.on.host.edge.z.0.times.value"}},{"id":"body.on.host.own-edge.z.0.times","op":"mul@1","args":["body.dimension.depth","host.k.centre"],"outputs":{"value":"body.on.host.own-edge.z.0.times.value"}},{"id":"body.seat.rigid","op":"rigid@1","args":["body.on.host.edge.x.0.times.value","body.on.host.seat.y.0.times.value","body.on.host.edge.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"body.seat.value"},"params":{"from":"body.seat","to":"host.local"}},{"id":"body.chain","op":"compose@1","args":["body.seat.value","body.poseValue"],"outputs":{"pose":"body.chain.value"}},{"id":"body.world","op":"compose@1","args":["host.chain.value","body.chain.value"],"outputs":{"pose":"body.world.value"}},{"id":"lever.on.body.seat.y.0.times","op":"mul@1","args":["body.dimension.height","k.ratio.0_5"],"outputs":{"value":"lever.on.body.seat.y.0.times.value"}},{"id":"lever.on.body.along.y.0.times","op":"mul@1","args":["lever.dimension.height","k.ratio.0_5"],"outputs":{"value":"lever.on.body.along.y.0.times.value"}},{"id":"lever.on.body.along.y.1.sum","op":"add@1","args":["lever.on.body.along.y.0.times.value","d.mm.0"],"outputs":{"value":"lever.on.body.along.y.1.sum.value"}},{"id":"lever.seat.rigid","op":"rigid@1","args":["d.mm.0","lever.on.body.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"lever.seat.value"},"params":{"from":"lever.joint","to":"body.local"}},{"id":"lever.chain","op":"compose@1","args":["lever.seat.value","lever.turned.value"],"outputs":{"pose":"lever.chain.value"}},{"id":"lever.world","op":"compose@1","args":["body.world.value","lever.chain.value"],"outputs":{"pose":"lever.world.value"}},{"id":"lever.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.0","axis.ratio.1","trip"],"outputs":{"pose":"lever.motion.value"},"params":{"from":"lever.seat","to":"lever.joint"}},{"id":"lever.turned","op":"compose@1","args":["lever.motion.value","lever.poseValue"],"outputs":{"pose":"lever.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"body.dimension.width":40,"body.dimension.height":60,"body.dimension.depth":30,"lever.dimension.width":10,"lever.dimension.height":80,"lever.dimension.depth":10},"stateDefaults":{"trip":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200","palette.tpl-d0d4d8":"#d0d4d8"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"body","material":{"token":"palette.tpl-f2c200"}},{"target":"lever","material":{"token":"palette.tpl-d0d4d8"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"body","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"body","face":"bottom"},"origin":{"align":{"x":"max","z":"max"}}},{"id":"lever","type":"revolute","body0":{"part":"body","face":"top"},"body1":{"part":"lever","face":"bottom"},"origin":{},"axis":"Z","lowerLimit":-30,"upperLimit":0,"state":{"id":"trip"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_LIMIT_SWITCH","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":"body.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"body.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"body.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"lever.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"trip","unit":"deg","min":-30,"max":0,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"body.k.centre","unit":"ratio","value":-0.5},{"id":"lever.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":"body.shape","op":"extrude@1","args":["body.start.value","body.dimension.height","body.dimension.width","body.dimension.depth"],"outputs":{"shape":"body.shapeValue"},"params":{"frame":"body.local","axis":"y","section":"rectangle"}},{"id":"body.pose","op":"rigid@1","args":["body.on.host.pose.x.t0.value","body.on.host.pose.y.t0.value","body.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"body.poseValue"},"params":{"from":"body.local","to":"body.seat"}},{"id":"body","op":"place@1","args":["body.shapeValue","body.world.value"],"outputs":{"placed":"body.placed"}},{"id":"body.start","op":"mul@1","args":["body.dimension.height","body.k.centre"],"outputs":{"value":"body.start.value"}},{"id":"lever.shape","op":"extrude@1","args":["lever.start.value","lever.dimension.height","lever.dimension.width","lever.dimension.depth"],"outputs":{"shape":"lever.shapeValue"},"params":{"frame":"lever.local","axis":"y","section":"rectangle"}},{"id":"lever.pose","op":"rigid@1","args":["d.mm.0","lever.on.body.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"lever.poseValue"},"params":{"from":"lever.local","to":"lever.seat"}},{"id":"lever","op":"place@1","args":["lever.shapeValue","lever.world.value"],"outputs":{"placed":"lever.placed"}},{"id":"lever.start","op":"mul@1","args":["lever.dimension.height","lever.k.centre"],"outputs":{"value":"lever.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":"body.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"body.on.host.seat.x.t0.value"}},{"id":"body.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"body.on.host.seat.y.t0.value"}},{"id":"body.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"body.on.host.seat.z.t0.value"}},{"id":"body.on.host.pose.x.t0","op":"mul@1","args":["body.dimension.width","host.k.centre"],"outputs":{"value":"body.on.host.pose.x.t0.value"}},{"id":"body.on.host.pose.y.t0","op":"mul@1","args":["body.dimension.height","k.ratio.0_5"],"outputs":{"value":"body.on.host.pose.y.t0.value"}},{"id":"body.on.host.pose.z.t0","op":"mul@1","args":["body.dimension.depth","host.k.centre"],"outputs":{"value":"body.on.host.pose.z.t0.value"}},{"id":"body.seat.rigid","op":"rigid@1","args":["body.on.host.seat.x.t0.value","body.on.host.seat.y.t0.value","body.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"body.seat.value"},"params":{"from":"body.seat","to":"host.local"}},{"id":"body.chain","op":"compose@1","args":["body.seat.value","body.poseValue"],"outputs":{"pose":"body.chain.value"}},{"id":"body.world","op":"compose@1","args":["host.chain.value","body.chain.value"],"outputs":{"pose":"body.world.value"}},{"id":"lever.on.body.seat.y.t0","op":"mul@1","args":["body.dimension.height","k.ratio.0_5"],"outputs":{"value":"lever.on.body.seat.y.t0.value"}},{"id":"lever.on.body.pose.y.t0","op":"mul@1","args":["lever.dimension.height","k.ratio.0_5"],"outputs":{"value":"lever.on.body.pose.y.t0.value"}},{"id":"lever.seat.rigid","op":"rigid@1","args":["d.mm.0","lever.on.body.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"lever.seat.value"},"params":{"from":"lever.joint","to":"body.local"}},{"id":"lever.chain","op":"compose@1","args":["lever.seat.value","lever.turned.value"],"outputs":{"pose":"lever.chain.value"}},{"id":"lever.world","op":"compose@1","args":["body.world.value","lever.chain.value"],"outputs":{"pose":"lever.world.value"}},{"id":"lever.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.0","axis.ratio.1","trip"],"outputs":{"pose":"lever.motion.value"},"params":{"from":"lever.seat","to":"lever.joint"}},{"id":"lever.turned","op":"compose@1","args":["lever.motion.value","lever.poseValue"],"outputs":{"pose":"lever.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"body.dimension.width":40,"body.dimension.height":60,"body.dimension.depth":30,"lever.dimension.width":10,"lever.dimension.height":80,"lever.dimension.depth":10},"stateDefaults":{"trip":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200","palette.tpl-d0d4d8":"#d0d4d8"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"body","material":{"token":"palette.tpl-f2c200"}},{"target":"lever","material":{"token":"palette.tpl-d0d4d8"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"body","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"body"},"origin":{"align":{"x":"max","z":"max"}}},{"id":"lever","type":"revolute","body0":{"part":"body","face":"top"},"body1":{"part":"lever"},"origin":{},"axis":"Z","lowerLimit":-30,"upperLimit":0,"state":{"id":"trip"}}]}
@@ -50,8 +50,7 @@
50
50
  "face": "top"
51
51
  },
52
52
  "body1": {
53
- "part": "{id}-body",
54
- "face": "bottom"
53
+ "part": "{id}-body"
55
54
  },
56
55
  "origin": {
57
56
  "align": {
@@ -71,8 +70,7 @@
71
70
  "face": "top"
72
71
  },
73
72
  "body1": {
74
- "part": "{id}-lever",
75
- "face": "bottom"
73
+ "part": "{id}-lever"
76
74
  },
77
75
  "origin": {},
78
76
  "axis": "Z",
@@ -5,10 +5,10 @@ export default function build() {
5
5
  const m = new Model(host({ x: 3000, y: 700, z: 800 }, 'TPL_LINEAR_GUIDE'))
6
6
  m.box('rail', 2700, 30, 40)
7
7
  .follow('rail', 'x', 'host', 'x', 0.9)
8
- .on('rail', 'bottom', 'host', 'top')
8
+ .on('rail', 'host', 'top')
9
9
  .colour('rail', 'palette.rail', '#9aa3ab')
10
10
  .box('carriage', 150, 40, 100)
11
- .on('carriage', 'bottom', 'rail', 'top', { x: 'min' })
11
+ .on('carriage', 'rail', 'top', { x: 'min' })
12
12
  .colour('carriage', 'palette.stop', '#e0a800')
13
13
  .do({ kind: 'set-joint', joint: { ...m.asset.joints!.find(j => j.body1.part === 'carriage')!, type: 'prismatic', axis: 'X', lowerLimit: 0, upperLimit: 1, travel: { source: { of: 'part', part: 'rail', axis: 'x' }, plus: -150 }, state: { id: 'move' } } } as never)
14
14
  return m.asset
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_LINEAR_GUIDE","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":"rail.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"rail.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"move","unit":"ratio","min":0,"max":1,"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":"rail.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_9","unit":"ratio","value":0.9},{"id":"carriage.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm._150","unit":"mm","value":-150},{"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.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":"rail.shape","op":"extrude@1","args":["rail.start.value","rail.dimension.height","rail.dimension.x.value","rail.dimension.depth"],"outputs":{"shape":"rail.shapeValue"},"params":{"frame":"rail.local","axis":"y","section":"rectangle"}},{"id":"rail.pose","op":"rigid@1","args":["d.mm.0","rail.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"rail.poseValue"},"params":{"from":"rail.local","to":"rail.seat"}},{"id":"rail","op":"place@1","args":["rail.shapeValue","rail.world.value"],"outputs":{"placed":"rail.placed"}},{"id":"rail.start","op":"mul@1","args":["rail.dimension.height","rail.k.centre"],"outputs":{"value":"rail.start.value"}},{"id":"rail.dimension.x","op":"mul@1","args":["rail.x.follows.times.value","k.ratio.1"],"outputs":{"value":"rail.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"rail.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_9"],"outputs":{"value":"rail.x.follows.times.value"}},{"id":"carriage.shape","op":"extrude@1","args":["carriage.start.value","carriage.dimension.height","carriage.dimension.width","carriage.dimension.depth"],"outputs":{"shape":"carriage.shapeValue"},"params":{"frame":"carriage.local","axis":"y","section":"rectangle"}},{"id":"carriage.pose","op":"rigid@1","args":["carriage.on.rail.own-edge.x.0.times.value","carriage.on.rail.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"carriage.poseValue"},"params":{"from":"carriage.local","to":"carriage.seat"}},{"id":"carriage","op":"place@1","args":["carriage.shapeValue","carriage.world.value"],"outputs":{"placed":"carriage.placed"}},{"id":"carriage.start","op":"mul@1","args":["carriage.dimension.height","carriage.k.centre"],"outputs":{"value":"carriage.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":"rail.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"rail.on.host.seat.y.0.times.value"}},{"id":"rail.on.host.along.y.0.times","op":"mul@1","args":["rail.dimension.height","k.ratio.0_5"],"outputs":{"value":"rail.on.host.along.y.0.times.value"}},{"id":"rail.on.host.along.y.1.sum","op":"add@1","args":["rail.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"rail.on.host.along.y.1.sum.value"}},{"id":"rail.seat.rigid","op":"rigid@1","args":["d.mm.0","rail.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"rail.seat.value"},"params":{"from":"rail.seat","to":"host.local"}},{"id":"rail.chain","op":"compose@1","args":["rail.seat.value","rail.poseValue"],"outputs":{"pose":"rail.chain.value"}},{"id":"rail.world","op":"compose@1","args":["host.chain.value","rail.chain.value"],"outputs":{"pose":"rail.world.value"}},{"id":"carriage.on.rail.seat.y.0.times","op":"mul@1","args":["rail.dimension.height","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.seat.y.0.times.value"}},{"id":"carriage.on.rail.along.y.0.times","op":"mul@1","args":["carriage.dimension.height","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.along.y.0.times.value"}},{"id":"carriage.on.rail.along.y.1.sum","op":"add@1","args":["carriage.on.rail.along.y.0.times.value","d.mm.0"],"outputs":{"value":"carriage.on.rail.along.y.1.sum.value"}},{"id":"carriage.on.rail.edge.x.0.times","op":"mul@1","args":["rail.dimension.x.value","host.k.centre"],"outputs":{"value":"carriage.on.rail.edge.x.0.times.value"}},{"id":"carriage.on.rail.own-edge.x.0.times","op":"mul@1","args":["carriage.dimension.width","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.own-edge.x.0.times.value"}},{"id":"carriage.seat.rigid","op":"rigid@1","args":["carriage.on.rail.edge.x.0.times.value","carriage.on.rail.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"carriage.seat.value"},"params":{"from":"carriage.joint","to":"rail.local"}},{"id":"carriage.chain","op":"compose@1","args":["carriage.seat.value","carriage.turned.value"],"outputs":{"pose":"carriage.chain.value"}},{"id":"carriage.world","op":"compose@1","args":["rail.world.value","carriage.chain.value"],"outputs":{"pose":"carriage.world.value"}},{"id":"carriage.motion.travel.plus","op":"add@1","args":["rail.dimension.x.value","d.mm._150"],"outputs":{"value":"carriage.motion.travel.plus.value"}},{"id":"carriage.motion.distance","op":"mul@1","args":["move","carriage.motion.travel.plus.value"],"outputs":{"value":"carriage.motion.distance.value"}},{"id":"carriage.motion","op":"axis-slide@1","args":["k.ratio.1","axis.ratio.0","axis.ratio.0","carriage.motion.distance.value"],"outputs":{"pose":"carriage.motion.value"},"params":{"from":"carriage.seat","to":"carriage.joint"}},{"id":"carriage.turned","op":"compose@1","args":["carriage.motion.value","carriage.poseValue"],"outputs":{"pose":"carriage.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"rail.dimension.height":30,"rail.dimension.depth":40,"carriage.dimension.width":150,"carriage.dimension.height":40,"carriage.dimension.depth":100},"stateDefaults":{"move":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-9aa3ab":"#9aa3ab","palette.tpl-e0a800":"#e0a800"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"rail","material":{"token":"palette.tpl-9aa3ab"}},{"target":"carriage","material":{"token":"palette.tpl-e0a800"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"rail","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"rail","face":"bottom"},"origin":{}},{"id":"carriage","type":"prismatic","body0":{"part":"rail","face":"top"},"body1":{"part":"carriage","face":"bottom"},"origin":{"align":{"x":"min"}},"axis":"X","lowerLimit":0,"upperLimit":1,"travel":{"source":{"of":"part","part":"rail","axis":"x"},"plus":-150},"state":{"id":"move"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_LINEAR_GUIDE","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":"rail.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"rail.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"carriage.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"move","unit":"ratio","min":0,"max":1,"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":"rail.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_9","unit":"ratio","value":0.9},{"id":"carriage.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm._150","unit":"mm","value":-150},{"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.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":"rail.shape","op":"extrude@1","args":["rail.start.value","rail.dimension.height","rail.dimension.x.value","rail.dimension.depth"],"outputs":{"shape":"rail.shapeValue"},"params":{"frame":"rail.local","axis":"y","section":"rectangle"}},{"id":"rail.pose","op":"rigid@1","args":["d.mm.0","rail.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"rail.poseValue"},"params":{"from":"rail.local","to":"rail.seat"}},{"id":"rail","op":"place@1","args":["rail.shapeValue","rail.world.value"],"outputs":{"placed":"rail.placed"}},{"id":"rail.start","op":"mul@1","args":["rail.dimension.height","rail.k.centre"],"outputs":{"value":"rail.start.value"}},{"id":"rail.dimension.x","op":"mul@1","args":["rail.x.follows.times.value","k.ratio.1"],"outputs":{"value":"rail.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"rail.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_9"],"outputs":{"value":"rail.x.follows.times.value"}},{"id":"carriage.shape","op":"extrude@1","args":["carriage.start.value","carriage.dimension.height","carriage.dimension.width","carriage.dimension.depth"],"outputs":{"shape":"carriage.shapeValue"},"params":{"frame":"carriage.local","axis":"y","section":"rectangle"}},{"id":"carriage.pose","op":"rigid@1","args":["carriage.on.rail.pose.x.t0.value","carriage.on.rail.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"carriage.poseValue"},"params":{"from":"carriage.local","to":"carriage.seat"}},{"id":"carriage","op":"place@1","args":["carriage.shapeValue","carriage.world.value"],"outputs":{"placed":"carriage.placed"}},{"id":"carriage.start","op":"mul@1","args":["carriage.dimension.height","carriage.k.centre"],"outputs":{"value":"carriage.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":"rail.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"rail.on.host.seat.y.t0.value"}},{"id":"rail.on.host.pose.y.t0","op":"mul@1","args":["rail.dimension.height","k.ratio.0_5"],"outputs":{"value":"rail.on.host.pose.y.t0.value"}},{"id":"rail.seat.rigid","op":"rigid@1","args":["d.mm.0","rail.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"rail.seat.value"},"params":{"from":"rail.seat","to":"host.local"}},{"id":"rail.chain","op":"compose@1","args":["rail.seat.value","rail.poseValue"],"outputs":{"pose":"rail.chain.value"}},{"id":"rail.world","op":"compose@1","args":["host.chain.value","rail.chain.value"],"outputs":{"pose":"rail.world.value"}},{"id":"carriage.on.rail.seat.x.t0","op":"mul@1","args":["rail.dimension.x.value","host.k.centre"],"outputs":{"value":"carriage.on.rail.seat.x.t0.value"}},{"id":"carriage.on.rail.seat.y.t0","op":"mul@1","args":["rail.dimension.height","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.seat.y.t0.value"}},{"id":"carriage.on.rail.pose.x.t0","op":"mul@1","args":["carriage.dimension.width","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.pose.x.t0.value"}},{"id":"carriage.on.rail.pose.y.t0","op":"mul@1","args":["carriage.dimension.height","k.ratio.0_5"],"outputs":{"value":"carriage.on.rail.pose.y.t0.value"}},{"id":"carriage.seat.rigid","op":"rigid@1","args":["carriage.on.rail.seat.x.t0.value","carriage.on.rail.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"carriage.seat.value"},"params":{"from":"carriage.joint","to":"rail.local"}},{"id":"carriage.chain","op":"compose@1","args":["carriage.seat.value","carriage.turned.value"],"outputs":{"pose":"carriage.chain.value"}},{"id":"carriage.world","op":"compose@1","args":["rail.world.value","carriage.chain.value"],"outputs":{"pose":"carriage.world.value"}},{"id":"carriage.motion.travel.plus","op":"add@1","args":["rail.dimension.x.value","d.mm._150"],"outputs":{"value":"carriage.motion.travel.plus.value"}},{"id":"carriage.motion.distance","op":"mul@1","args":["move","carriage.motion.travel.plus.value"],"outputs":{"value":"carriage.motion.distance.value"}},{"id":"carriage.motion","op":"axis-slide@1","args":["k.ratio.1","axis.ratio.0","axis.ratio.0","carriage.motion.distance.value"],"outputs":{"pose":"carriage.motion.value"},"params":{"from":"carriage.seat","to":"carriage.joint"}},{"id":"carriage.turned","op":"compose@1","args":["carriage.motion.value","carriage.poseValue"],"outputs":{"pose":"carriage.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"rail.dimension.height":30,"rail.dimension.depth":40,"carriage.dimension.width":150,"carriage.dimension.height":40,"carriage.dimension.depth":100},"stateDefaults":{"move":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-9aa3ab":"#9aa3ab","palette.tpl-e0a800":"#e0a800"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"rail","material":{"token":"palette.tpl-9aa3ab"}},{"target":"carriage","material":{"token":"palette.tpl-e0a800"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"rail","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"rail"},"origin":{}},{"id":"carriage","type":"prismatic","body0":{"part":"rail","face":"top"},"body1":{"part":"carriage"},"origin":{"align":{"x":"min"}},"axis":"X","lowerLimit":0,"upperLimit":1,"travel":{"source":{"of":"part","part":"rail","axis":"x"},"plus":-150},"state":{"id":"move"}}]}
@@ -81,8 +81,7 @@
81
81
  "face": "top"
82
82
  },
83
83
  "body1": {
84
- "part": "{id}-rail",
85
- "face": "bottom"
84
+ "part": "{id}-rail"
86
85
  },
87
86
  "origin": {}
88
87
  }
@@ -97,8 +96,7 @@
97
96
  "face": "top"
98
97
  },
99
98
  "body1": {
100
- "part": "{id}-carriage",
101
- "face": "bottom"
99
+ "part": "{id}-carriage"
102
100
  },
103
101
  "origin": {
104
102
  "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: 1800, z: 500 }, 'TPL_LOCKER_ROW'))
6
6
  m.box('door', 380, 1760, 15)
7
- .on('door', 'back', 'host', 'front')
7
+ .on('door', 'host', 'front')
8
8
  .colour('door', 'leaf', '#5c7c96')
9
9
  .do({ kind: 'make-repeat', part: 'door', axis: 'x', pitch: 400, narrowRange: true })
10
10
  return m.asset