Skip to content

Ray tetrahedron intersection #154

Answered by BrunoLevy
arouwane asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
The function does not exist in geogram, but it is quite easy to implement,
In geogram/mesh/mesh_AABB.cpp, there is a ray_triangle_intersection() function that is used internally, not part of the API now, copy it to your file, then call it four times on the four triangles of your tetrahedron. If needed, I will make it part of the API (in a .h) in a future release.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arouwane
Comment options

Answer selected by arouwane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants