Repository navigation
Print3D 0.2.0
Print3D 0.2.0 adds an evidence and verification layer for image and reference-driven modelling. It does not replace the existing CAD, STEP, slicing or printer paths, and existing assets keep working without migration.
Highlights
- Versioned evidence:
model_writeaccepts an optionalspec(orspec_path) and a referencemask. The normalizedspec.jsonand mask are copied into the revision and recorded with SHA-256, so the evidence used for a build stays reproducible. - Measured dimensions:
model_validatemeasures the built STL and compares named dimensions against the specification. Supported measurements are the model bounding box, its axes (width/depth/height) and volume. Each dimension records its source, tolerance, measured value, error and status. - Honest validation states:
model_validatedistinguishespass,warn,needs_evidenceandfail, and reports what is still missing. A build alone is not treated as accepted when a mask, visual check or human review is still required. - Optional silhouette likeness:
model_likenesscompares a single orthographic view with a user-supplied mask. It reports IoU, clipping, shape-only mode and a mirror/rotation diagnostic. It is always advisory and never blocks the existing build or slice path. - Build feedback:
model_buildnow includes the dimension validation result when a spec exists, and its hint says explicitly when visual or human evidence is still outstanding. - Documentation and metadata: the Chinese and English manuals document the spec schema, measurement semantics and likeness limits. The MCP server and registry metadata report version 0.2.0.
The server now exposes 32 tools. Existing workspaces, assets and scripts are unchanged.
Install
From PyPI:
uvx --python 3.11 --from print3d==0.2.0 print3d init
uvx --python 3.11 --from print3d==0.2.0 print3d capabilitiesThe release also provides a wheel, an sdist and the npm bundle tarball below for offline or pinned installation. The previous v0.1.1 release remains available and is not modified.
Package channels
- npm (DSH bundle):
print3d-mcp@0.2.0, 6 files, shasumcd80bee9beee9819b9df29b59184bed87a4a0a43; it pinsprint3d==0.2.0. The same tarball is attached below. - MCP Registry:
io.github.ThinkArtWork/print3d@0.2.0, statusactiveandisLatest=true; the PyPI-backed 0.1.1 entry remains active.
Verification
ruff check src tests: passed.- Full local test suite: 368 passed, 12 skipped; skipped cases are Windows-specific checks or the Unix-covered equivalent.
- Real build123d end-to-end: a 40 × 20 × 10 mm box, four named dimensions, a 402 × 202 px top-view mask at 0.1 mm/px, dimension validation
pass, likeness IoU 0.9925 withadvisory=trueandblocking=false. - Clean wheel install: version 0.2.0, 32 tools discoverable, CLI reports 0.2.0.
Windows x64 acceptance (2026-12-01)
A Windows 11 x64 machine (NT 10.0.26300.0, AMD64, PowerShell 5.1, uv/uvx 0.13.8) installed print3d==0.2.0 from PyPI and ran the published acceptance kit end to end:
- Cold start: 67.3 s; warm start: 0.7 s; MCP handshake plus evidence path: 10.4 s.
- 32 tools exposed, including
model_validateandmodel_likeness. - A real build123d 20 × 20 × 10 mm box built with
bbox=[20,20,10] mm,volume=4.0 cm3, one solid, 6 faces and 12 triangles; watertight and valid. - Four named bbox/volume dimensions passed with 0.0 mm error;
model_validatereturnedpasswithcomplete=falseandhuman_reviewstill listed as remaining evidence, as designed. model_likenessran in physical mode at 0.1 mm/px and returned IoU 0.9901,severity=pass,advisory=true,blocking=false.capabilitiesreported native CAD available and the Windows sandbox (tree_kill=true,kill_method=job object, no POSIX rlimits). Blender, OrcaSlicer and printers were not configured; that is expected for this smoke test.- Non-blocking warning: the ezdxf cache directory under the test account's home was unavailable, so
cad.jsonrecorded a cache warning. The build exited 0 and STL/STEP geometry was valid.
This acceptance covers the Windows execution path: package installation, native CAD, MCP transport, spec/mask persistence, named-dimension validation and advisory likeness. It does not prove image-to-model accuracy or physical print quality. The machine was Windows 11 x64; Windows 10 was not re-run in this acceptance.
Acknowledgements
The dimension evidence, silhouette comparison and evidence-aware acceptance design were developed with reference to mfranzon/print3d (MIT), at revision 3926182. Thanks to the original author for open-sourcing these mechanisms. The upstream copyright and full MIT license text are preserved in the repository's NOTICE; the Chinese and English READMEs and manuals link to it.
Boundaries
- Dimension validation covers the bounding box and volume, not hole positions, wall thickness, internal features or assembly fits. Use CAD/STEP checks, a coupon or a physical fit for those.
- Photo-based dimension evidence still requires a user or host-selected scale, points and mask. Camera perspective, occlusion and segmentation error remain the user's responsibility.
- Silhouette IoU is two-dimensional view evidence, not a 3D reconstruction or a guarantee that the part matches the object.
- This release did not add a new physical print validation. The Windows 11 x64 acceptance above is a software/geometry smoke test, not a print test; Windows 10 was not re-run in that acceptance.
Alpha software. See the README and manual for platform, hardware and safety boundaries.