Remove outer boxes from a brep


(Jameschadud) #1

Hi there Guys. I would be pleased if anyone can help me with this.

I am creating a custum shape (brep or mesh). This object will be inside a 3d box grid and I need to remove the outer boxes and keep only the ones that stay inside. I have this for now.

Thanks in advance


#2

Hi James,

You could use the Shape in Brep component which gives you the relationship of each box to your Brep, where 0=inside, 1=intersecting, 2=outside. Then by using a cull pattern you can cull every box where the relationship is not 0, like so:

Hope that helps,

-Sash