It is me again! I found that some queries for scene.intersect gave me unexpected results. In this example, I created two rays shooting from one side of the cube (yellow points) to the other side (purple points):
But one of them (upper pair) returns a hit, the other one (bottom pair) does not. I wonder whether you know where I may do wrong?
I extracted a self-contained script here for your reference
Thanks for reporting this! Seems to be a precision issue---the intersection point should lie along the edge of the nearest triangle. I'll debug it tomorrow :)
Hi Rohan,
It is me again! I found that some queries for
scene.intersect
gave me unexpected results. In this example, I created two rays shooting from one side of the cube (yellow points) to the other side (purple points):But one of them (upper pair) returns a hit, the other one (bottom pair) does not. I wonder whether you know where I may do wrong?
I extracted a self-contained script here for your reference