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

Skipping intersections #18

Open
sampotter opened this issue Feb 21, 2022 · 0 comments
Open

Skipping intersections #18

sampotter opened this issue Feb 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sampotter
Copy link
Owner

sampotter commented Feb 21, 2022

A common use case for this library is determining pairwise visibility between mesh elements, such as triangles.

Embree's intersect1M or similar records the first intersection for each ray. This makes shooting a ray "from" a triangle difficult, since it can easily happen that the first intersection is just that triangle. To get around this, the start of a ray can be perturbed away from the source element, but this is a hack.

Embree provides "intersection filters" to make skipping elements possible, but they require a callback. It would be useful to allow a user to pass their own callback, either from Python or even from Cython. But it is probably more important to capture some of the common cases (such as "skip self") at the library level.

Here's a forum post on the same topic.

@sampotter sampotter added the enhancement New feature or request label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant