Hi, I want to get solid difference of the unit within its minimum bounding box. However, the solid difference is failing. I have started to create planes for trimming. It will take too much time to define it for every object. Is there any solution?
Thanks in advance.
Hi @oralet,
It would work, if you were willing to shrink your bounding box a little. Currently it completely encloses your other brep, which causes the difference to fail.
I’ve made a little change to your Python component to extract the plane of the bounding box.
Thanks for your reply. But I want to get the negative solid created by intersection like subtracting the unit out of the bounding box. Is that possible?
Well, that’s exactly what the above example shows. As already mentioned in my previous reply, if your bounding box completely encloses the positive, you won’t be able to subtract it from the box.
At least a little part of the positive has to protrude or your bounding box could be in two or more parts.
you can slice the bounding box into two and boolean out your shape on each half
sorta like making a mold that you can pull apart