Closed ZenanH closed 1 week ago
Hi! Thanks for raising the issue. I had made a mistake in the raytrace_cpu.jl parallelisation script. I have submitted a pull request that should fix this issue.
I tested it again and it works perfectly. 👍 Hope a new ImplicitBVH.jl version will be released soon, ray tracing function is useful.
Hi! Thanks for providing this package, I think it can play a big role in my project. My question is about ray tracing. This feature is not registered yet, so I just added it by git URL (main).
I have a set of triangular faces forming a closed 3D entity
A
and need to determine if a large number of scattered points are inside it. I plan to use ray-casting, counting intersections of rays with triangles. To accelerate, BVH can filter potential intersecting triangles instead of checking all. I think the ray-tracing example provides this first step, returning possible intersecting triangles and ray IDs in Tuple. (Please correct me if I'm wrong.😅)I prepared an example where A is a tetrahedron. All directions are fixed as
[0, 0, 1]
(z-direction).I think the result here is reasonable. However, If I uniformly fill the test points within a space range of 1 with a step size of 0.1, the result is as follows:
Since there are 1331 test points uniformly distributed within a cube of side length 1, I believe the result should not consist of only eight tuples.
Do you think this result is reasonable? Is it a bug, or is there an issue with my understanding or code? Thanks!