Hey, I just saw your reply. Sorry for the delay. That wasn’t exactly what I was advising, but I’m glad it worked out.
Personally, I feel like you’re going too complicated. In my opinion, this is a really simple problem. I know I’ve already recommended for you to use my original (after reformatting it of course, it’s horrible otherwise) raycast solution (because of how easy and efficient it is), but I just want to push on that a bit more.
Anyways, if you still want to use ReadVoxels, this is what I meant:
Basically, instead of searching the whole region outside the bounds, just search in a line.