Skip to content

Commit 8461304

Browse files
committed
chore: edit some comments
1 parent bf1c4d2 commit 8461304

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

optimize/angle_based_smoothing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def angle_based_smoothing(unstr_grid, iterations=1):
165165
vvm_pos = node_coords_2d[vvm_idx] # Current neighbor
166166
vvn_pos = node_coords_2d[vvn_idx] # Next neighbor
167167

168-
# 以 vvm 为旋转中心构造向量(与 smoothing.cpp 一致)
168+
# 以 vvm 为旋转中心构造向量
169169
v = curr_node_pos - vvm_pos # Vector from vvm to current node
170170
v1 = vvp_pos - vvm_pos # Vector from vvm to vvp
171171
v2 = vvn_pos - vvm_pos # Vector from vvm to vvn
@@ -294,7 +294,7 @@ def smart_angle_based_smoothing(unstr_grid, iterations=1):
294294
vvm_pos = node_coords_2d[vvm_idx] # Current neighbor
295295
vvn_pos = node_coords_2d[vvn_idx] # Next neighbor
296296

297-
# 以 vvm 为旋转中心构造向量(与 smoothing.cpp 一致)
297+
# 以 vvm 为旋转中心构造向量
298298
v = curr_node_pos - vvm_pos # Vector from vvm to current node
299299
v1 = vvp_pos - vvm_pos # Vector from vvm to vvp
300300
v2 = vvn_pos - vvm_pos # Vector from vvm to vvn
@@ -421,7 +421,7 @@ def getme_method(unstr_grid, iterations=1):
421421
if area_before <= 0 or quality_before <= 0:
422422
continue
423423

424-
# Apply transformation to get new triangle (match smoothing.cpp formulas)
424+
# Apply transformation to get new triangle
425425
y1 = np.array([
426426
(p1[0] + p3[0]) / 2.0 + np.sqrt(3.0) / 2.0 * (p1[1] - p3[1]),
427427
(p1[1] + p3[1]) / 2.0 + np.sqrt(3.0) / 2.0 * (p3[0] - p1[0]),

sfmesh/mesh_3d_afm.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,8 +2507,6 @@ def _trim_front(self, front: SurfaceFront) -> bool:
25072507
"""
25082508
阵面修剪:当阵面端点角度很小时,直接连接到相邻阵面的节点。
25092509
2510-
2511-
25122510
通过 edge_count 查找边界邻居,避免遍历整个 front_list。
25132511
25142512
Args:
@@ -2599,8 +2597,6 @@ def _close_simple_front(self, front: SurfaceFront) -> bool:
25992597
"""
26002598
闭合简单阵面:当端点有边界邻居时,尝试闭合为三角形。
26012599
2602-
2603-
26042600
通过 edge_count 查找边界邻居,避免遍历整个 front_list。
26052601
26062602
Args:

0 commit comments

Comments
 (0)