Using this node setup: find out if vertices are inside or outside of another mesh, using geometry nodes
I want to delete all points of a 3D grid (Size of the bounding box) that are outside the mesh.
In this particular case (Suzanne rotated x -20° & y 30° and applied rotation), there's some points on a line that are not properly detected.
The issue has to do with the raycast node since the lines have the same direction as the direction vector. (Using a different direction vector fixes the issue same as having a different rotation of the object)
Why does this artifact occur and how can it be avoided? Is there a different approach for detecting if a point is inside a mesh?