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

3D: ray casts which touch a TriMesh edge report intersection with a backface #335

Open
clbarnes opened this issue May 20, 2020 · 1 comment

Comments

@clbarnes
Copy link

Here's a repo demonstrating the issue: https://github.com/clbarnes/ncollide-issue-graze

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. ncollide3d 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 #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.

@clbarnes clbarnes changed the title 3D bug: ray casts which touch a TriMesh edge report intersection with a backface 3D: ray casts which touch a TriMesh edge report intersection with a backface May 20, 2020
@sebcrozet
Copy link
Member

Yeah, launching multiple rays sounds like a safe alternative for the time being.

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

2 participants