-
-
Notifications
You must be signed in to change notification settings - Fork 445
Fix selection of nD-sliced shapes #7459
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
Conversation
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.
Makes sense and I tested locally that it resolves the serious issue.
next( | ||
inside_indices[p] | ||
for p in pos[::-1] | ||
if np.any( | ||
inside_triangles( | ||
self._visible_shapes[inside_indices[p]][ | ||
1 | ||
]._all_triangles() | ||
- coord | ||
) |
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.
Have I mentioned I hate black? Not sure I have... 🤔
😂 😭
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.
it's ok, we use ruff. 😜
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7459 +/- ##
==========================================
- Coverage 92.98% 92.90% -0.08%
==========================================
Files 626 626
Lines 58128 58145 +17
==========================================
- Hits 54048 54022 -26
- Misses 4080 4123 +43 ☔ View full report in Codecov by Sentry. |
References and relevant issues
closes #7458
Description
This PR closes bug with selecting shapes only from current slice, introduced in #7144.
The source of the bug is not filtering out-of-slice shapes when searching for intersecting triangles.