Autonomously resolve, seat and verify 3D models on KiCad footprints — offline-first, callable from the GUI, the CLI, and by other plugins or an AI agent.
Designed by Z2Labs and Rapid Proto Woerk Kft.
One library (finish3d) is the single source of truth; the GUI button, the CLI and
the JSON API are thin wrappers over it.
For every footprint on a board, Finish 3D walks an offline-first resolution chain and uses the first source that returns a usable model:
- Already linked — an existing
(model …)that resolves on disk. - KiCad stock — the
packages3Dlibraries, matched byLib:Name. - Local cache —
~/.finish3d/cache/, keyed by MPN / LCSC / footprint hash. - EasyEDA / LCSC — by
C######part number (networked, opt-in). - GitHub / vendor libraries — a curated repo table (networked, opt-in).
- Parametric generation — a CadQuery datasheet body, or a stdlib courtyard-extruded box when CadQuery isn't installed.
- Placeholder — a labelled box sized to the courtyard, always emitted with a
MODEL_MISSINGwarning so the gap is loud.
Only steps 4–5 touch the network. The default is offline (--offline); add
--online to enable the networked sources.
Each resolved model is seated (the rotate-then-mirror transform lives in one place)
and verified against the footprint courtyard read straight from the .kicad_pcb
(an independent source). Verification is only trusted because a witness self-test
injects known errors (90° rotation, wrong side, 25.4× scale, 1 mm offset, swapped
model) and requires every one to be caught.
pip install -e . # core, stdlib-only
pip install -e ".[net]" # + EasyEDA/LCSC + GitHub sources
pip install -e ".[gen]" # + CadQuery parametric STEP generation
pip install -e ".[dev]" # + pytestpython -m finish3d board.kicad_pcb --offline --render
python -m finish3d board.kicad_pcb --online --write-back --out out/
python -m finish3d selftestBuild the installer zip and install it from KiCad:
python3 packaging/make_pcm.py # -> dist/finish3d-<ver>-pcm.zipInstall it either way:
-
From file: KiCad → Plugin and Content Manager → Install from File… → the zip.
-
From repository: KiCad → Plugin and Content Manager → Manage… → add
https://raw.githubusercontent.com/z2labs/finish3d/main/pcm/repository.json
Then press the Finish 3D toolbar button (the UV-window EPROM icon). pcb render
needs KiCad 8+. See docs/PACKAGING.md; for the official PCM list see
docs/SUBMITTING.md.
from finish3d.api import handle
report = handle({"op": "resolve_board", "board": "board.kicad_pcb", "offline": True})Or language-agnostic over stdin/stdout:
echo '{"op":"resolve_board","board":"board.kicad_pcb"}' | python -m finish3d.apiOne request in, one report out — no hidden state.
python -m finish3d selftest # must be 100% before trusting anythingv0.1.0 — core (board I/O, seat, verify, selftest, resolution chain, tables, CLI, JSON
API) is implemented and tested offline. The CadQuery datasheet generators and the KiCad
10 GUI button need on-machine reconciliation and hand-testing (see
docs/MACHINE_CHECKLIST.md).
GPL-3.0-or-later. Downloaded/generated models are redistributed only when their license is confirmed permissive or own; everything else stays in the local cache.