平滑处理

This commit is contained in:
hesuicong committed 2026-11-06 17:03:58 +08:00
1 parent 1f272668f1
commit ac85d3a23c
1 file changed
+5
+5
View File
@@ -1007,6 +1007,11 @@ class FillMeshGenerator:
zb = np.minimum(zb, zf - 0.15)
zb = np.maximum(zb, zf - 50)
if len(xy) > 0:
# 对 zf 进行边界感知平滑(假设 hf 已平滑,此处防双线性走样)
zf = self.bilinear(self.smooth_valid(hf, R, sigma=1.5, it=2), xy)
# 若边界仍硬,可对边界环单独拉普拉斯平滑(需在生成 T 前做 xy 松弛,此处略)
Pf = np.column_stack([xy, zf])
Pb = np.column_stack([xy, zb])