Skip to content

Commit

Permalink
Fix potential self-intersection polygon in Scene._filter_structures_p…
Browse files Browse the repository at this point in the history
…lane
  • Loading branch information
weiliangjin2021 committed Nov 14, 2024
1 parent 969a823 commit a59b389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidy3d/components/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def _filter_structures_plane(
if _shape.is_empty or not shape.intersects(_shape):
continue

diff_shape = _shape - shape
diff_shape = (_shape - shape).buffer(0)

# different prop, remove intersection from background shape
if prop != _prop and len(diff_shape.bounds) > 0:
Expand Down

0 comments on commit a59b389

Please sign in to comment.