Enhance case viewer with lid open/close and assembly controls.

Add explode slider, mock board/DHT, cutaway, wireframe, views, and shortcuts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 15:04:05 +08:00
parent 4898087dc7
commit 5d9132d754
3 changed files with 463 additions and 103 deletions

View File

@@ -12,9 +12,21 @@ python -m http.server 8765 --directory cad
然后打开:**http://localhost:8765/viewer.html**
可旋转 / 缩放,切换仅前框、仅后盖,或分解视图。
### 预览操作
其它查看方式:用 [Bambu Studio](https://bambulab.com/)、Cura、PrusaSlicer 直接打开 `export/*.stl`;或把 STL 拖进 [viewstl.com](https://www.viewstl.com/) / [3dviewer.net](https://3dviewer.net/)。
| 操作 | 说明 |
|------|------|
| 合盖 / 开盖 | 前框铰链开合动画 |
| 开合度滑条 | 0% 合拢 → 100% 打开 |
| 分解滑条 | 拉开零件看内部 |
| 播放装配 | 分解 → 合拢 → 合盖 全程 |
| 模拟板 / DHT | 显示 PCB 与传感器示意 |
| 线框 / 透视 / 剖切 | 看结构与开孔 |
| 等轴/正/侧/顶 | 快速视角 |
| 截图 | 导出 PNG |
| 快捷键 | `O` 开盖 · `C` 合盖 · `空格` 播放 · `W` 线框 · `X` 透视 |
其它查看方式:切片软件打开 `export/*.stl`,或 [viewstl.com](https://www.viewstl.com/) / [3dviewer.net](https://3dviewer.net/)。
## 零件