From ac85d3a23ca8a3c65c2c0cbe7698a038f33f1228 Mon Sep 17 00:00:00 2001 From: hesuicong Date: Fri, 6 Nov 2026 17:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E6=BB=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fill2sc/generate_fill_mesh_hsc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fill2sc/generate_fill_mesh_hsc.py b/fill2sc/generate_fill_mesh_hsc.py index 3ab8e89..ee6a722 100644 --- a/fill2sc/generate_fill_mesh_hsc.py +++ b/fill2sc/generate_fill_mesh_hsc.py @@ -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])