Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added small distance for in-conductor check due to numerical issues. #122

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion femmt/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ def point_is_in_conductor(x, y, p1, p2, p3, p4, p5):
return point_is_in_rect(x, y, x_min, y_max, x_max, y_min)

def point_is_in_rect(x, y, left, top, right, bottom):
return x >= left and x <= right and y >= bottom and y <= top
return x >= left-1e-9 and x <= right+1e-9 and y >= bottom-1e-9 and y <= top+1e-9

def rasterize_winding_window(left_bound, right_bound, bot_bound, top_bound):
# Winding window rasterization:
Expand Down
Loading