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

Ray casts which touch a TriMesh edge report intersection with a backface #171

Open
clbarnes opened this issue Dec 12, 2023 · 1 comment
Open

Comments

@clbarnes
Copy link

This issue was originally reported on ncollide: dimforge/ncollide#335

Imagine Santa's sled knocking some snow off the top of a roof. It could be argued that no impact happened, or it could be argued that the impact happened with the edge. parry3d reports that Santa collided with the inside of the house.

This is important for using ray casting to determine whether a point is inside a mesh. As per dimforge/ncollide#317, I am casting a ray and checking whether it intersected with a backface. In the motivating example, a point nowhere near the mesh happens to cast a ray which skims a ridge in the mesh: due to this issue, a backface intersection is reported.

The issue is demonstrated here (on the parry branch): https://github.com/clbarnes/ncollide-issue-graze/tree/parry

@clbarnes
Copy link
Author

Note that the motivating example for this, containment checks for points in meshes, is now potentially made obsolete by contains_local_point actually doing a solid containment check if the pseudonorms are calculated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant