Communitygithub.com

cli-anything-threemf

3MF网格几何编辑器——检测和调整圆柱孔、修复网格、比较3D打印文件。支持BambuStudio和PrusaSlicer的3MF文件。

cli-anything-threemf 是什么?

这是一个专门针对3D打印文件(3MF格式)的网格几何编辑工具。它能够自动检测圆柱孔(通过多平面横截面分析),并支持将孔调整到指定的目标直径(通过径向顶点缩放,保持网格拓扑结构不变)。此外,它还提供网格修复功能(如修复退化面、重复顶点、法线方向等),以及两个3MF文件的差异比较功能。该工具兼容BambuStudio和PrusaSlicer等常见切片软件生成的3MF文件,在修改过程中会保留切片软件的元数据。所有命令均支持机器可读的JSON输出,便于集成到自动化工作流中。适合需要在3D打印前修复模型、统一孔尺寸或校验文件一致性的用户。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-threemf

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

cli-anything-3mf

用于3D打印文件的3MF网格几何编辑器。

安装

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=3MF/agent-harness

命令

# 显示网格信息(顶点数、面数、包围盒、水密性状态、体积)
cli-anything-3mf info <file.3mf>

# 检测圆柱孔(中心点、直径、置信度)
cli-anything-3mf inspect <file.3mf>

# 将孔调整到目标直径
cli-anything-3mf resize <file.3mf> --hole 0 --hole 1 --diameter 4.2 -o output.3mf

# 修复网格问题(退化面、重复顶点、法线方向)
cli-anything-3mf repair <file.3mf> -o repaired.3mf

# 比较两个3MF文件
cli-anything-3mf compare <file1.3mf> <file2.3mf>

JSON 输出

所有命令均支持 --json 参数以输出机器可读的结果:

cli-anything-3mf --json inspect model.3mf

主要特性

  • 通过多平面横截面分析检测圆柱孔
  • 通过径向顶点缩放调整孔大小(保持网格拓扑结构)
  • 在文件重新打包时保留切片软件元数据(BambuStudio、PrusaSlicer)
  • 修改后修复退化面和重复顶点
  • 兼容所有符合3MF核心规范的3MF文件

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相关技能