The overlap between the two parts is usually, (but not always), equal and I wonder if there isn't a script somewhere that already does this? Otherwise, what would be a quick way to go about it manually?
Hi Nick- see if the attached script helps... it's a bit quick and dirty and not heavily tested but it might help for simple cases of pairs of closed panels that meet each other squarely (not rotated relative to one another except at 90 degrees, everything a box). Rotated is surely possible, but needs more typing, and thought.
Did you just knock that up? That was quick! Either way, you've just saved me time on about 75% of operations I have of that type, so thanks.
I should tell you that the script creates a new curve on the first polysurface, (panel), which can be deleted without problem, but aside from that it seems to work perfectly.
Hi Nick- I guess I left one of the intersection curves in place- that is meant to be deleted but I must have commented the line out for testing. In the meantime, this one only works for nicely arranged pairs of panels- I am pretty close to having something that works even if the panels are at arbitrary angles... I'll let you know if I figure out the current roadblock to making that reasonably reliable.
Meantime, if you open the script you have in EditScript and look for the line that says
and delete that line of code, the extra curve will not show up- that was in there for some test or other while I was typing it.
Hi Nick- OK, I monkeyed a little more with this- the attached should be more robust- see how it works for you... now it should handle panels at odd angles and different thicknesses, and chamfered or filleted edges, though I am not really super confident about this part. Also, the flow is a little different- you select the first panel, and then click on intersecting panels one at a time, and it will (try to) cut them as you go...
And, just because I could not leave it alone, this one allows you to set clearance...
I don't know what to say... you are producing these quicker than I can test them!
Seriously, I really appreciate this because this type of work is about 80% of what I do when I'm sitting in front of Rhino, see below to get an idea.
This cabin is made up almost entirely of parts which intersect and which are cut out on a 3 axis cnc machine.
I don't have time to really look at what you've done today, but I will send you some proper feedback next week,