← 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/machinepinmediumshort#1). These levels come from the pin-only Fusion export, added at lod/source/MachinePin_Medium_Short_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_Short_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,744 1,494 562 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/machinepinmediumshort/render/lod/MachinePin_Medium_Short_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
@@ -68,3 +68,20 @@ machine pin contacts), not this part's. See the Molecule Design white paper, Tab The footprint carries the Adom solder-ball layer (KiCad `User.9`, named `Adom.SolderBalls`; EAGLE/Fusion layer 101 `SolderBalls`): 17 balls in a ring on the 1.6 mm annular pad (ring radius 0.675 mm), jetted 300 um balls at 0.25 mm pitch per [john/adom-solder-ball-layer-standard](https://wiki.adom.inc/john/adom-solder-ball-layer-standard). Positions are listed per pad in `MachinePinMediumShort.solder-balls.json`. The older `MachinePinMediumShort.glb` insertion view still shows its earlier, coarser 8-ball ring.++## 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_Short_Gold.glb`), not from the demo-scene GLB at the repo root ([#1](https://wiki.adom.inc/adom/machinepinmediumshort/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,744 | 1,494 | 562 | 220 |+| Draw calls | 2 | 2 | 2 | 1 |++::adom-component-lod{src="/adom/machinepinmediumshort/render/lod/MachinePin_Medium_Short_Gold/manifest.json"}
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-high.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-high.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-low.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-low.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-medium.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-medium.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-super-low.glbadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-super-low.pngadded
⋯ 1 unchanged line ⋯
lod/MachinePin_Medium_Short_Gold/manifest.jsonadded+204
@@ -0,0 +1,204 @@+{+ "schema": "adom/component-lod@1",+ "mpn": "Machine Pin Medium Short (pin-only) MachinePin_Medium_Short_Gold",+ "units": "metres",+ "upAxis": "Z",+ "frame": "MachinePin_Medium_Short_Gold source frame, Z-up; source vertices under root node 'machinepinmediumshort-MachinePin_Medium_Short_Gold-lod-root' scaled 0.001",+ "sourceToLevelScale": 0.001,+ "status": "candidate",+ "source": {+  "path": "lod/source/MachinePin_Medium_Short_Gold.glb",+  "sha256": "f2df0e1743cd756b358a28f842394276a52e401551b36f782aed3aeb266e4d5d",+  "sizeBytes": 72188,+  "triangles": 1744+ },+ "generator": "lod-tools/build.mjs (@gltf-transform 4, meshoptimizer); previews lod-tools/render.py",+ "levels": [+  {+   "level": "high",+   "path": "lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-high.glb",+   "sha256": "f7cb3a6a0e0e6cd75fd102ac7e9b208d6a6a996517c03b7e82e58d4327a3c636",+   "sizeBytes": 51848,+   "decodedBufferBytes": 49776,+   "triangles": 1744,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00495+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -4.95,+    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_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-high.png",+    "sha256": "faa961e4b43faa0c632f60e7999e62bedaa0f47fd526c696023661e9bc67165a",+    "sizeBytes": 6860,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "f7cb3a6a0e0e6cd75fd102ac7e9b208d6a6a996517c03b7e82e58d4327a3c636"+   }+  },+  {+   "level": "medium",+   "path": "lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-medium.glb",+   "sha256": "eacf3bab64908eac157bc35ff798c0fa649c8da88f19d526b038da6a0b144a44",+   "sizeBytes": 42212,+   "decodedBufferBytes": 40140,+   "triangles": 1494,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00495+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -4.95,+    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_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-medium.png",+    "sha256": "28050a11b75223b14f6a649fd7024650dc4f53614b4090c9de96401fab1b5187",+    "sizeBytes": 6860,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "eacf3bab64908eac157bc35ff798c0fa649c8da88f19d526b038da6a0b144a44"+   }+  },+  {+   "level": "low",+   "path": "lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-low.glb",+   "sha256": "c9914c35ff4779b54240cf4d27c02f25d42f9fdb8bc4c6609e32e9d648a2f821",+   "sizeBytes": 21064,+   "decodedBufferBytes": 18996,+   "triangles": 562,+   "primitives": 2,+   "drawCalls": 2,+   "materials": 2,+   "bounds": {+    "min": [+     -0.0008,+     -0.0007942,+     -0.00495+    ],+    "max": [+     0.0008,+     0.0007942,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.794,+    -4.95,+    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_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-low.png",+    "sha256": "b03bce679da526cac62e4b8f2bedfb0392829fa5c482b64e9153b27958a6d695",+    "sizeBytes": 8342,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "c9914c35ff4779b54240cf4d27c02f25d42f9fdb8bc4c6609e32e9d648a2f821"+   }+  },+  {+   "level": "super-low",+   "path": "lod/MachinePin_Medium_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-super-low.glb",+   "sha256": "16c2410b6c92c71e817f64e8af81829813d069fe26356fb818de3fe76c899acd",+   "sizeBytes": 18748,+   "decodedBufferBytes": 17520,+   "triangles": 220,+   "primitives": 1,+   "drawCalls": 1,+   "materials": 1,+   "bounds": {+    "min": [+     -0.0008,+     -0.0008,+     -0.00495+    ],+    "max": [+     0.0008,+     0.0008,+     0.0028+    ]+   },+   "boundsMm": [+    -0.8,+    -0.8,+    -4.95,+    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_Short_Gold/machinepinmediumshort-MachinePin_Medium_Short_Gold-super-low.png",+    "sha256": "c6743456ca2348f7f68bac10bcaa4c3c9ede1a85be8337e5d5fde33caa254724",+    "sizeBytes": 5509,+    "width": 400,+    "height": 300,+    "view": "iso front-left-up, framed on high (lod-tools/render.py)",+    "sourceLevelSha256": "16c2410b6c92c71e817f64e8af81829813d069fe26356fb818de3fe76c899acd"+   }+  }+ ],+ "hints": [+  "All levels share the source frame; place them exactly as the source GLB.",+  "Drop node 'machinepinmediumshort-MachinePin_Medium_Short_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_Short_Gold_v40.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_Short_Gold.glbadded
⋯ 1 unchanged line ⋯

Comments

No comments yet.

Log in to comment.