I'm attempting to remove the points which are in front of instanced planes of various sizes:
That way, the remaining points can be used for instances that won't overlap:
The task is almost solved with this setup:
However, I don't think I'm using the raycast node properly. I tried intuitively scaling the target geometry by 0.001 along the faces' normals, but that netted an incorrect selection. Just by happenstance, I tried the position, and that got close (the result pictured above), but if I reverse the selection for clarity it is easy to see that this setup isn't correct either as it includes points not in front of faces in the selection:
I've tried the following prior advice to no avail:
Raycast on Geometry generated by Geo Nodes?
Geo Nodes - Raycast from individual Mesh islands
Blender Geometry Nodes - Create individual XYZ curve/mesh lines per edge-defined cubic area
I hope this question is unique enough to be worth posting, but I'll let those with more insight than myself decide. Either way, an answer or even a hint in the right direction would be much appreciated.