About cli-anything-threemf
cli-anything-3mf is a command-line mesh geometry editor for 3MF files, aimed at 3D printing workflows. It inspects mesh properties and cylindrical holes, resizes holes, and preserves slicer metadata when repacking files.
Key features
- 01Inspect mesh geometry and properties
- 02Detect cylindrical holes
- 03Resize holes by target diameter
- 04Preserve slicer metadata
- 05Repair degenerate faces and duplicate vertices
- 06Output machine-readable JSON
Use cases
- 01Check a 3MF mesh before printing
- 02Find cylindrical holes in a model
- 03Adjust hole diameters in a 3D print file
- 04Process command output in scripts
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hkuds/ cli-anything --skill cli-anything-threemfAfter installing, type/cli-anything-threemfin Claude Code to confirm it loaded.
Details
From the project READMEcli-anything-3mf
3MF mesh geometry editor for 3D printing files.
Installation
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=3MF/agent-harness
Commands
# Show mesh info (vertices, faces, bounding box, watertight status, volume)
cli-anything-3mf info <file.3mf>
# Detect cylindrical holes (center, diameter, confidence)
cli-anything-3mf inspect <file.3mf>
# Resize holes to target diameter
cli-anything-3mf resize <file.3mf> --hole 0 --hole 1 --diameter 4.2 -o output.3mf
# Fix mesh issues (degenerate faces, duplicate vertices, normals)
cli-anything-3mf repair <file.3mf> -o repaired.3mf
# Compare two 3MF files
cli-anything-3mf compare <file1.3mf> <file2.3mf>
JSON Output
All commands support --json for machine-readable output:
cli-anything-3mf --json inspect model.3mf
Key Features
- Detects cylindrical holes via multi-plane cross-section analysis
- Resizes holes by radial vertex scaling (preserves mesh topology)
- Preserves slicer metadata (BambuStudio, PrusaSlicer) during file repack
- Repairs degenerate faces and duplicate vertices after modification
- Works with any 3MF file conforming to the 3MF Core Specification
Comments
Markdown supported