Files
osmWorkflow/.trellis/tasks/archive/2026-08/08-05-cesium-preview-controls/implement.md

22 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 实施计划Cesium 语义资产检查
1. 读取 Blender 场景集合,定义四个稳定的语义导出组;完整 GLB 仍走当前路径。
2. 扩展 `export_cesium.py`:导出四份辅助 GLB并把资产描述写进 metadata。
3. 扩展 `build-area.js` 的 Cesium 输出检查和 manifest使辅助资产成为该阶段的受管产物。
4. 更新 `area-preview.js``cesium-preview.js` 与 CSS增加完整/分类模式及分类显隐控件,保持旧 metadata 回退。
5. 为 HTML 注入、metadata 回退和模式状态编写 Node 侧测试;运行既有预览与纯 Python 测试。
6. 在本机重建一个区域,确认辅助 GLB 坐标、材质、模式切换及窄屏布局;此环境若 Blender 沙箱失败,不将其计为代码失败。
## 验证
```bash
node scripts/test-preview-assets.js
python3 -m unittest discover blender/tests
git diff --check
npm run build:area -- --config config/areas/nantaizi-lake-innovation-valley.json --stages cesium
```
## 回滚点
主 GLB 与原 preview 文件保持不变。若辅助导出或分类预览异常,可删除语义资产声明并恢复为单资产加载,不影响既有场景。