Boolean stencil?

 From:  Michael Gibson
9436.4 In reply to 9436.1 
Hi Przemas, so is everything working ok under Wine now with MoI v4 and setting that __GL_MaxFramesAllowed=1 environment variable? Or are there some remaining problems?

re:
> So I've been wondering - can it be scripted/macroed somehow?

It's certainly possible but it can take quite a bit of work to make things like that which have quite a bit of interaction in it.

Maybe an easier workflow would be instead of using trim you could form the needed cutting objects using a boolean with a shrunken base box.

That would go something like this - start with your base shape and intersecting objects:



Shrink down the sides of the base shape using extrude:



Now do a boolean difference with the small boxes as the base and the adjusted base shape as the cutting object. This will form the cutting objects you need like this:



These can now be booleaned against the original base shape:




Or maybe a little simpler would be to draw a rectangle curve and use that as the cutting object to cut the small boxes:



That's probably the fewest steps - one step to draw the rectangle, then second step boolean difference the small boxes with the rectangle, then third step boolean the main box with those.

- Michael