Shape in brep by percentage

I am trying to make an opening for a frame in masonry. As seen in the example file some masonry doesn’t cull because it is outside the brep by a small amount. Is there a way to change the tolerance or to sort it by percentage of the solid thats inside the brep? Thanks in advance! percentage of solid in solid.gh (134.7 KB)

In the direction of the brick, sample 5 points inside and for each brick see how many of these points are inside the brep, if there are 2 points inside it means it is aprox. 40% inside and if there are 3 points aprox. 60% inside. If this simple criterion doesn’t work for you, sample more points.

1 Like


percentage of solid in solid_re.gh (135.0 KB)

1 Like

Nice, thanks great solution!