Hi,

I'm a relatively recent Rhino convert, working mostly doing drawings for cnc cutting of sheet ply, and find myself often needing to intersect two sheets as best described in the attached jpg.

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?

Thanks,

Nick

Views: 252

Replies to This Discussion

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.

To use the script, extract and save the .rvb file from the attached zip archive, then drag and drop the saved rvb over an open Rhino V4 or v5 window. This will load the script, set it up to load on startup in the future and register the alias
Notcher
that will run the script much like a regular command. An alias can be typed or added to a toolbar button or keyboard shortcut (F-key).
-Pascal
pascal@mcneel.com

Attachments:

Hi Pascal,

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.

Thanks again,

Nick

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

Rhino.CopyObject longest

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.

-Pascal

pascal@mcneel.com

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... 

-Pascal

pascal@mcneel.com

Attachments:

And, just because I could not leave it alone, this one allows you to set clearance...

-Pascal

pascal@mcneel.com

Attachments:

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,

Many thanks, 

Nick

RSS

Translate

© 2014   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service