Files
AnyImage/openspec/changes/improve-cutout-adaptive-mesh/tasks.md
nan 7e55af6722 Add comprehensive tests for edge depth extension, empty image edits, and material view adaptation
- Introduced `test_edge_depth.py` to validate the functionality of edge depth extension, ensuring core alpha preservation, proper depth handling, and edge padding behavior.
- Created `test_empty_image_edits.py` to verify the behavior of image edits in Blender, focusing on shared edits, preservation of image properties, and handling of failed operations.
- Developed `test_material_view_adaptation.py` to test material adaptation preferences, ensuring color space and alpha settings are correctly applied and preserved across various scenarios.
2026-09-06 21:43:47 +08:00

1.8 KiB
Raw Blame History

1. 规格与双模式入口

  • 1.1 修改 proposal、design 和 spec,明确 Fine Outline 默认开启、关闭使用原算法及复杂输入的性能取舍。
  • 1.2 增加共享 Bool 属性、工具设置与菜单快照,覆盖本地和 AI 返回创建。
  • 1.3 接入两种几何算法,复用 UV、世界度量、高度求解及全部 Shape。

2. 精细网格

  • 2.1 移植独立实验的轮廓精度、极小独立岛清理及拓扑有效性重试,尊重当前 Alpha 阈值。
  • 2.2 接入宽度索引、连续稀疏路径及 CDT 实际约束验证。
  • 2.3 接入有收敛上限的内部均匀化,并修复最终网格的零高度内部边与无支撑三角形。
  • 2.4 增加弯腿、变宽关节、孔洞、细桥、密集分枝、独立岛与高密度轮廓误差回归。

3. 运行时与验收

  • 3.1 声明客户端依赖、同步锁文件,验证三平台 wheel 可用性及体积,检查 Manifest 和打包测试。
  • 3.2 测试默认值、关闭模式、菜单快照、本地与异步入口、世界变换及 Blender 类型注册。
  • 3.3 在四图四档和复杂蕨叶上比较正式实现与原算法,记录数值耗时、顶点和支撑检查。
  • 3.4 测量 2K/4K 合成输入的耗时、峰值内存与网格上限。
  • 3.5 运行 Cutout、交互、对象、依赖打包相关测试及完整测试,验证现有 Shape 的节点消费。

4. SciPy 依赖精简与大坐标约束校验

  • 4.1 接入距离脊宽度采样和 NumPy 轮廓简化,保留许可证,移除 scikit-image 并同步锁文件和本地 wheels。
  • 4.2 用实际约束边的端点连通验证替代长度误差判断,覆盖大坐标短边与真实断线回归。
  • 4.3 验证典型图片、高分辨率输入、打包和 Cutout 相关回归。