-
Notifications
You must be signed in to change notification settings - Fork 12
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
POC: NHS only include intersecting faces #699
base: main
Are you sure you want to change the base?
POC: NHS only include intersecting faces #699
Conversation
# Check if any face intersects a cell in the face-embedding cell grid | ||
for cell in bounding_box(face, geometry, neighborhood_search) | ||
cond = always_true ? true : face_intersects_cell(face, geometry, Tuple(cell), neighborhood_search) | ||
|
||
if cond | ||
PointNeighbors.push_cell!(cell_list, Tuple(cell), face) | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the relevant part in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can rebase on main once #529 is merged to clean up this PR and reduce it to this relevant part.
In our discussion, we also noted that |
As discussed with @efaulhaber, there's no real improvement in checking whether a face intersects a cell in the face-embedding cell grid. However, this PR is used to store the methods.
To show that it doesn't really improve performance, here's a quick showcase. In both cases, 2D and 3D, all the faces are almost the same size.
3D (geometry with ca. 25k faces)
2D (geometry with ca. 63 edges)