← All Pull Requests

Four pin-only levels of detail (high, medium, low, super-low) #1

Open opened by John Lauer
Merges lod-levels → master · view live diff →

Adds four levels of detail (high, medium, low, super-low) of the pin alone, so the robot-arm and scaffold simulators can draw hundreds of these at super-low and promote close ones to high.

Why a new source: the page's main model is a demo scene with a board square around the part, not the part (adom/machinepinmediumstandard#1). These levels come from the pin-only Fusion export, added at lod/source/MachinePin_Medium_Standard_Gold.glb. Nothing at the repo root changes, so the canonical -part model that the issue proposes can still replace both.

What changes:

  • lod/source/: the Fusion pin-only GLB that the levels are made from.
  • lod/MachinePin_Medium_Standard_Gold/: four GLBs, four cached 400×300 previews and an adom/component-lod@1 manifest.
  • README.md: a "Levels of detail" section with the numbers and the widget.

Frame: metres, Z along the pin axis at the part's own Fusion datum. The millimetre data sits under a root node scaled 0.001.

High Medium Low Super-low
Triangles 1,665 1,424 505 220
Draw calls 2 2 2 1

Checks run:

  • High matches the Fusion export within 1 µm.
  • No board, pad, silkscreen or solder geometry in any level.
  • No inverted triangles in any level.
  • The manifest passes the widget's own checks (hashes, sizes, previews).
  • I inspected every preview by eye.
  • Not yet tested: a streaming LOD viewer.

Widget block, already in the README:

::adom-component-lod{src="/adom/machinepinmediumstandard/render/lod/MachinePin_Medium_Standard_Gold/manifest.json"}

From the LOD pages thread for John's robot-arm simulator.

🤖 Generated with Claude Code

Diff Skip to comments

README.md+17
@@ -62,3 +62,20 @@ machine pin contacts), not this part's. See the Molecule Design white paper, Tab   ```  - All Adom machine pins in one Fusion library: **[Adom Machine Pins - Fusion Library](https://wiki.adom.inc/adom/adom-machine-pins-fusion-lbr)**.++## Levels of detail++Four levels of detail of the pin **alone**, for robot-arm, scaffold and probing simulators. A viewer loads super-low first and switches to more detail as you zoom in. They are made from the Fusion export in [`lod/source/`](lod/source/) (`MachinePin_Medium_Standard_Gold.glb`), not from the demo-scene GLB at the repo root ([#1](https://wiki.adom.inc/adom/machinepinmediumstandard/issues/1)).++- **Frame:** metres, Z along the pin axis at the Fusion datum. The millimetre data sits under one root node scaled 0.001.+- **High:** the Fusion geometry, unchanged (within 1 µm).+- **Medium and low:** simplified with meshoptimizer.+- **Super-low:** stacked 12-gon prisms that follow the pin's radius along its axis.+- **Status:** candidate. Each level has been checked as a cached image. None has been tested yet in a viewer that streams levels.++| | High | Medium | Low | Super-low |+|---|---|---|---|---|+| Triangles | 1,665 | 1,424 | 505 | 220 |+| Draw calls | 2 | 2 | 2 | 1 |++::adom-component-lod{src="/adom/machinepinmediumstandard/render/lod/MachinePin_Medium_Standard_Gold/manifest.json"}
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-high.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-high.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-low.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-low.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-medium.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-medium.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-super-low.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-super-low.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Standard_Gold/manifest.jsonadded+204
@@ -0,0 +1,204 @@+{+ "schema": "adom/component-lod@1",+ "mpn": "Machine Pin Medium Standard (pin-only) MachinePin_Medium_Standard_Gold",+ "units": "metres",+ "upAxis": "Z",+ "frame": "MachinePin_Medium_Standard_Gold source frame, Z-up; source vertices under root node 'machinepinmediumstandard-MachinePin_Medium_Standard_Gold-lod-root' scaled 0.001",+ "sourceToLevelScale": 0.001,+ "status": "candidate",+ "source": {+  "path": "lod/source/MachinePin_Medium_Standard_Gold.glb",+  "sha256": "ae2e13ff7e3f83b7b48a0547a9fe9d389c4a801983617d49a56e8053fdc956bd",+  "sizeBytes": 70028,+  "triangles": 1665+ },+ "generator": "lod-tools/build.mjs (@gltf-transform 4, meshoptimizer); previews lod-tools/render.py",+ "levels": [+  {+   "level": "high",+   "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-high.glb",+   "sha256": "428f707d12208b05bfdf462cde5e7e4cdc49544108a3cf5508a3af8a4370236f",+   "sizeBytes": 50044,+   "decodedBufferBytes": 47934,+   "triangles": 1665,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00775+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -7.75,+    0.8,+    0.794,+    2.8+   ],+   "markingIncluded": false,+   "helperNodes": [],+   "extensions": [],+   "derivation": "source mesh, primitives joined per material (flatten, join, weld, dedup); geometry unchanged",+   "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+   "preview": {+    "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-high.png",+    "sha256": "a91ab15a7dfd35b30d7319a4c796ca94b9fc33e4a056e87e65072ef0b64d9451",+    "sizeBytes": 5319,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "428f707d12208b05bfdf462cde5e7e4cdc49544108a3cf5508a3af8a4370236f"+   }+  },+  {+   "level": "medium",+   "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-medium.glb",+   "sha256": "2417f627a698c0e06d945964c431c6b5cf083912775a48cc8aeeb5626ca5b108",+   "sizeBytes": 40196,+   "decodedBufferBytes": 38088,+   "triangles": 1424,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00775+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -7.75,+    0.8,+    0.794,+    2.8+   ],+   "markingIncluded": false,+   "helperNodes": [],+   "extensions": [],+   "derivation": "meshopt simplify of high, ratio target 0.35, error 0.0008 of mesh extent",+   "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+   "preview": {+    "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-medium.png",+    "sha256": "a27fbf4e39815f5d81cf9c2ec5f9d183a00de5e82e28fc24b873654cbd7d665e",+    "sizeBytes": 5449,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "2417f627a698c0e06d945964c431c6b5cf083912775a48cc8aeeb5626ca5b108"+   }+  },+  {+   "level": "low",+   "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-low.glb",+   "sha256": "f14220ebfbb933012eff87b34b8f3dc08c2a9f8789ae64c11e6913443c565e1d",+   "sizeBytes": 19684,+   "decodedBufferBytes": 17574,+   "triangles": 505,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00775+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -7.75,+    0.8,+    0.794,+    2.8+   ],+   "markingIncluded": false,+   "helperNodes": [],+   "extensions": [],+   "derivation": "meshopt simplify of high, ratio target 0.10, error 0.006 of mesh extent",+   "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+   "preview": {+    "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-low.png",+    "sha256": "2f4e583755eb555177f309cd7bab55acd01a33f7281ac93eb0e4c308d3afc0c3",+    "sizeBytes": 6829,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "f14220ebfbb933012eff87b34b8f3dc08c2a9f8789ae64c11e6913443c565e1d"+   }+  },+  {+   "level": "super-low",+   "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-super-low.glb",+   "sha256": "e83f3b76b4d38d47f3438047bc513bfe38b26716d13d2f0774e8bab1e0d373cf",+   "sizeBytes": 18752,+   "decodedBufferBytes": 17520,+   "triangles": 220,+   "primitives": 1,+   "drawCalls": 1,+   "materials": 1,+   "bounds": {+    "min": [+     -0.0008,+     -0.0008,+     -0.00775+    ],+    "max": [+     0.0008,+     0.0008,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.8,+    -7.75,+    0.8,+    0.8,+    2.8+   ],+   "markingIncluded": false,+   "helperNodes": [],+   "extensions": [],+   "derivation": "lathe profile: stacked 12-gon prisms following the radius along Z, one primitive, top-surface colour (5 stacked 12-gon prisms)",+   "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+   "preview": {+    "path": "lod/MachinePin_Medium_Standard_Gold/machinepinmediumstandard-MachinePin_Medium_Standard_Gold-super-low.png",+    "sha256": "3551bc8f53f3df69b160074444386c4c76f00b7cecba78d58199e7fb16243748",+    "sizeBytes": 4528,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "e83f3b76b4d38d47f3438047bc513bfe38b26716d13d2f0774e8bab1e0d373cf"+   }+  }+ ],+ "hints": [+  "All levels share the source frame; place them exactly as the source GLB.",+  "Drop node 'machinepinmediumstandard-MachinePin_Medium_Standard_Gold-lod-root' (scale 0.001) to get the source units back.",+  "Super-low is one primitive: load it first, promote on screen size.",+  "Pin-only: the Fusion export MachinePin_Medium_Standard_Gold_v76.glb (lod/source/, Adom hub, Main / Machine Pins), not the page's demo-board GLB. Z is the pin axis at the part's own Fusion datum; millimetre source under root scale 0.001."+ ]+}\ No newline at end of file
lod/source/MachinePin_Medium_Standard_Gold.glbadded
⋯ 1 unchanged line ⋯

Comments

No comments yet.

Log in to comment.