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

Add ray-casting based query for point lying inside/outside mesh #4

Open
Shane-J-Latham opened this issue Aug 23, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Shane-J-Latham
Copy link
Collaborator

Would be good for the API to support multiple mesh objects in one scene, i.e. return inside/outside result for each mesh object in a scene.

@Shane-J-Latham Shane-J-Latham added the enhancement New feature or request label Aug 23, 2021
@odf
Copy link
Collaborator

odf commented Aug 23, 2021

Agreed! That's already possible with the combination of EmbreeScene and TriangleMesh, but in that case the scene object does not retain the raw mesh data. For EmbreeSceneExtended, it should be fairly easy to maintain a list or dictionary of meshes stored in the instance and then in intersections() use ray_hit.hit.geomID to pick the correct one.

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

2 participants