Can you show me what’s wrong with the point-in-brep method? Is it a tolerance issue, the fact that these boxes are floating “far” from the origin, or inadequate data management on my part? I thank you in advance for looking into it!
You need to first origanize the issue of matching Brep and Points data, ensuring that each Brep is calculated using the two points closest to it. This can be achieved using Closest Points , and fyi.
Needless to say is that the required point is actually the one outside, not inside the brep (irrelevant fact for the purpose of the needed solution: get the correct boolean pattern).
Said points (midpoints) correspond to line pairs, out of which I must keep the one outside.
I’ve successfully integrated your instruction back into the main (larger script):