We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c8cc1 commit 3d73d77Copy full SHA for 3d73d77
tidy3d/components/grid/grid_spec.py
@@ -1630,6 +1630,14 @@ def _find_vertical_intersections(
1630
if ind_end == ind_beg:
1631
continue
1632
1633
+ # intersects one grid line but almost parallel to it
1634
+ if np.abs(ind_end - ind_beg) == 1 and np.abs(
1635
+ v_beg[0] - v_end[0]
1636
+ ) < 2 * GAP_MESHING_TOL * np.abs(
1637
+ grid_x_coords[ind_beg - 1] - grid_x_coords[ind_end - 1]
1638
+ ):
1639
+ continue
1640
+
1641
# sort vertices in ascending order to make treatmeant unifrom
1642
reverse = False
1643
if ind_beg > ind_end:
0 commit comments