dsh-cad-viewer
dsh plugin: a 3D model library and a three-cad-viewer workbench in a '3D模型' tab, plus inline model cards and CadQuery agent tools. Models are stored server-side, so the library is shared across devices.
AI Analysis
核心用途是为 DSH 引入 3D 建模与预览能力,支持通过 CadQuery 脚本生成和查看模型。适合从事 3D 建模、CAD 设计辅助任务的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CMoyuer/dsh-cad-viewerREADME
Read the full README ↗配置项
通过 dsh 配置树(schemastery)配置,一般写在 profile 的 cordis.patch.yml 里。
| 字段 | 默认值 | 说明 |
|---|---|---|
apiPrefix | /3dmodel | 模型存储 API 前缀。 |
assetPrefix | /tcv | three-cad-viewer 静态资源前缀。 |
dataDir | /data | 模型存储目录。不要让两个 dsh 实例并发写同一个目录。 |
cadqueryPython | D:\AI\3DModels\.venv\Scripts\python.exe | 装好 CadQuery 的解释器,供 build_3dmodel 与导出使用;请改成你机器上的路径。 |
cadqueryTolerance | 0.1 | 默认 tessellation 容差(网格导出也用它)。 |
cadqueryExportTimeout | 300000 | 单次导出最长毫秒数(5 分钟)。 |
maxBodyBytes | 33554432 | JSON 请求体上限(32 MB)。 |
maxUrlLength | 2048 | 静态资源路由接受的 URL 最大长度。 |
apiPrefix / assetPrefix 同时硬编码在随包分发的 lib/client.js 里,改前缀必须一并改它。