Points outside brep

Hi all,

I have a small questions about finding points outside brep.
I found in other chats how to do it and I implemented it into my script. It works perfectly for small box but for some reason doesn’t for bigger one. Like in the attached images.
I don’t know what I’m doing wrong :frowning:

cheers!

you can use : shape in brep

inside pts.gh (98.7 KB)

Thank you! :slight_smile: