← Commit history

Document /compose-vias (chip + named heatsink-via solids for Fusion); pkg 1.2.2

John Lauer ·5e9ab67200 ·1mo ago ·parent 8dab3e7
3 files changed +12−4
README.md+4
@@ -95,8 +95,11 @@ curl -X POST "$SVC/name-emboss?name=BME688&rot=180" --data-binary @chip.step curl -X POST "$SVC/create-chip"       -d @chip_3d.json       # parametric chip body JSON to STEP curl -X POST "$SVC/create-footprint"  -d @pads.json          # pad array JSON to STEP curl -X POST "$SVC/bake" -F [email protected] -F [email protected] # bake transforms into the geometry+curl -X POST "$SVC/compose-vias" -F [email protected] -F [email protected]   # chip + named heatsink-via barrels, two toggleable solids ``` +`/compose-vias` composes a chip STEP with a via layer into one STEP whose root assembly holds two named components: `Adom.Chip` (the input geometry, untouched) and `Adom.HeatsinkVias` (copper barrels at each via centre, 0.3 mm hole and 0.6 mm OD by default, from z=0 down through a 1.6 mm board). Fusion 360 imports them as separately toggleable bodies, which is how the fusion-bridge shows or hides a QFN's thermal-via layer. The vias JSON is `{"vias":[{"x":-1.8,"y":-1.8}, ...]}` in footprint mm (Y-up, origin = exposed-pad centre) with optional `drill_mm`, `barrel_od_mm`, `board_thickness_mm`, `chip_name`, `vias_name`, `root_name`; adom-footprint emits this file for every heatsink footprint.+ The service does not just read STEP files, it writes and edits them: generating chip bodies and footprint geometry from JSON specs, baking transforms, and embossing text. Output of every one of these is a downloadable STEP.  ### Geometry analysis@@ -157,6 +160,7 @@ The service lives at `https://step2glb-gmdoncpxdwx0.adom.cloud` (override with ` | `POST /create-chip` | chip_3d JSON | STEP | | `POST /create-footprint` | pads JSON | STEP | | `POST /bake` | multipart step + bake JSON | STEP |+| `POST /compose-vias` | multipart step + vias JSON | STEP with named solids Adom.Chip + Adom.HeatsinkVias | | `GET /jobs/{id}` | | job status + stats (silkscreen, molecule, warnings, stage timings) | | `GET /jobs/{id}/result` | | the binary result | | `GET /jobs/{id}/footprint` `/symbol` | | molecule side artifacts |
SKILL.md+4−2
@@ -1,6 +1,6 @@ --- name: step2glb-description: The Adom STEP engine, CLI + shared OCCT service under one name. FULLY MANAGE STEP FILES end to end. Convert STEP (.step/.stp) CAD files to color-preserving GLBs, render thumbnails (single + batch) and 16 vector outline styles, laser-emboss part numbers into the die, create/edit STEP geometry (create-chip, create-footprint, bake), extract features, and run FULL MOLECULE MODE (--molecule/--board: MP-marker anchoring, gold machine pins, footprint + symbol JSON with per-pad wire-attach Z). Thin ~3MB Rust CLI; the OCCT runtime stays on the service. Use when the user asks to convert a STEP to GLB, convert a molecule board, render a component with real materials, extract STEP features, make STEP thumbnails, etch a name onto a chip, or edit/generate STEP geometry. Triggers: manage step files, step file management, step to glb, step2glb, convert step, cad to glb, molecule convert, kicad step to glb, occt gltf, occt service, step preview, step thumbnail, step features, edit step file, create chip step, emboss mpn.+description: The Adom STEP engine, CLI + shared OCCT service under one name. FULLY MANAGE STEP FILES end to end. Convert STEP (.step/.stp) CAD files to color-preserving GLBs, render thumbnails (single + batch) and 16 vector outline styles, laser-emboss part numbers into the die, create/edit STEP geometry (create-chip, create-footprint, bake), extract features, and run FULL MOLECULE MODE (--molecule/--board: MP-marker anchoring, gold machine pins, footprint + symbol JSON with per-pad wire-attach Z). Thin ~3MB Rust CLI; the OCCT runtime stays on the service. Use when the user asks to convert a STEP to GLB, convert a molecule board, render a component with real materials, extract STEP features, make STEP thumbnails, etch a name onto a chip, or edit/generate STEP geometry. Triggers: heatsink vias step, thermal via layer, compose-vias, manage step files, step file management, step to glb, step2glb, convert step, cad to glb, molecule convert, kicad step to glb, occt gltf, occt service, step preview, step thumbnail, step features, edit step file, create chip step, emboss mpn. ---  # adom-step2glb — the Adom STEP engine (CLI + shared OCCT service)@@ -82,7 +82,9 @@ The service also exposes HTTP-only verbs the CLI does not wrap yet: `/outline` (16 OCCT-HLR vector outline styles), `/name-emboss` (laser the MPN into the die: embossed STEP + rendered iso), `/create-chip` + `/create-footprint` (JSON spec → STEP), `/bake` (bake transforms into-geometry), `/step-meta` (names/structure/units). All async: 202 + job_id,+geometry), `/compose-vias` (chip STEP + via JSON → STEP with named solids+Adom.Chip + Adom.HeatsinkVias, a Fusion-toggleable thermal-via layer),+`/step-meta` (names/structure/units). All async: 202 + job_id, poll `/jobs/{id}`, download `/jobs/{id}/result`. POSTs need `X-Client` + `X-Job-Name` headers. 
package.json+4−2
@@ -1,6 +1,6 @@ {   "slug": "adom-step2glb",-  "version": "1.2.1",+  "version": "1.2.2",   "type": "app",   "description": "The Adom STEP engine: fully manage STEP files. Convert to color-preserving GLB, render thumbnails and vector outlines, laser-etch MPNs, create and edit STEP geometry, extract features, and run molecule mode. One name for the thin Rust CLI and the shared OCCT service. Formerly 'step2glb' + 'service-step2glb'.",   "tags": [@@ -50,7 +50,9 @@     "bake step transform",     "step features",     "step metadata",-    "silkscreen overlay glb"+    "silkscreen overlay glb",+    "heatsink vias step",+    "thermal via layer"   ],   "discovery_pitch": "Fully manage STEP files: color-preserving GLB conversion, single + batch thumbnails, 16 vector outline styles, MPN laser embossing, STEP creation/editing (create-chip, create-footprint, bake), feature extraction, and full molecule mode (anchored GLB + footprint + symbol). Thin ~3MB CLI; the shared OCCT service container does the heavy lifting.",   "sample_prompts": [