Files
AnyImage/openspec/changes/refine-cutout-split-boundaries/tasks.md
nan 31074bd511 Add tests and implement boundary smoothing and cutout functionality
- Introduced tests for boundary smoothing in `test_boundary_smoothing.py`, verifying that smoothing reduces stair-step artifacts while preserving boundary integrity.
- Added tests for cutout boundary behavior in `test_cutout_boundary.py`, ensuring proper handling of boundary triangles and normal blending.
- Created `test_temporary_attributes.py` to check the cleanup of temporary attributes across depth modifier branches, ensuring no warnings are raised.
- Implemented point culling functionality in `test_validity.py`, confirming that invalid points are removed without affecting adjacent geometry.
- Developed boundary smoothing logic in `boundary_smoothing.py`, allowing for depth smoothing while maintaining edge integrity.
- Added cutout boundary management in `cutout_boundary.py`, including functions for removing boundary triangles and tapering thickness profiles.
- Implemented validity checks in `validity.py` to ensure proper deletion of invalid vertices and associated wire edges.
2026-09-11 20:37:20 +08:00

1.9 KiB
Raw Blame History

1. 切口清理

  • 1.1 核对当前 Cutout 与公共边界平滑调用链,在 Split 后接入一次全边界三角面清理,保留现有工作区修改。
  • 1.2 在清理后的几何上沿用现有边界平滑,检查域求值和 Boundary Smooth 为 0 时的行为。
  • 1.3 用锯齿、窄条、孔洞合成网格验证一次删除范围,并检查清理后平滑的面朝向,覆盖 Boundary Smooth 0、5、12、20。

2. 切口厚度与圆润

  • 2.1 区分原 Alpha 轮廓与新切口,在明确源几何上求值 UV 距离过渡并更新现有 o_balloon 字段,处理无新边界分支。
  • 2.2 将过渡轮廓接入厚度和 Edge Round 消费链,验证最终交汇厚度、过渡带外保持及新旧边界交接。
  • 2.3 覆盖 Edge Round 0、0.2、0.6,不同图像长宽比、Mesh Detail 与 Balloon/Uniform 模式,检查有限结果及原轮廓行为。

3. 厚度关联法向

  • 3.1 在三处法向平滑消费位置接入始终启用的厚度结果混合,保留 Normal Smooth 迭代数和现有源几何语义。
  • 3.2 添加薄厚度趋零、归一化厚度 1 还原完整平滑、Normal Smooth 0 和 Reference Depth 零值保护的自动化回归。

4. 资产与验收

  • 4.1 整理节点布局和最少属性生命周期,检查源码与测试辅助图 Capture 为零、保留用户属性并清理临时字段。
  • 4.2 运行相关 Cutout、边界平滑、属性及加载测试,执行 uv run node-group build,更新并验证正式资产及加载版本。
  • 4.3 独立加载资产,连续调整并恢复 Split Threshold、Boundary Smooth、厚度与 Edge Round,检查实时更新及结果可重现。
  • 4.4 使用已缓存恐龙头骨数据做边界形状验收,覆盖 Split Threshold 0、0.25、0.5、1 和 Boundary Smooth 0、5、12、20,记录 High 网格求值耗时;厚度关联效果以自动化回归确认。