To delete duplicate entities, curve, shape, etc.; use Seldup and delete previous selection set.
But, do we have a command does the same or even better?
Tags:
Permalink Reply by Chris Tietjen on February 26, 2013 at 8:24pm What would 'better' be?
Permalink Reply by Tom on February 27, 2013 at 4:31am Seldup works well for exact duplicates but not allow a bit tolerance. See attached example, partial curves overlapping some other partial curves get Seldup lost.
Permalink Reply by Chris Tietjen on February 27, 2013 at 7:58am Here's a Rhinoscript that will remove the examples you've given. I've called it a 'sub curve on a curve' but I don't know if that's the correct way to reference it. Drop the .rvb file on an open Rhino window to test. If it's useful you can assign it to a button or give it a command alias.
Permalink Reply by Tom on February 27, 2013 at 5:04pm Cool, very nice. I guess in the script line 25 ‘j’ ought to be ‘i’ or we have to declare ‘j’.
Can you make this script even powerful for the overlapping curves on the left(in above attached file - untitled.3dm)? This is a real problem when I imported a dgn file into Rhino and struggled to clean up overlapping curves before constructing surfaces.
Thanks!
Permalink Reply by Chris Tietjen on February 27, 2013 at 6:30pm Yes, change that 'j' to an 'i'. I must have forgotten to save the corrected file a last time before posting it. It works correctly for me on all of the curves you've presented in your file. What are you seeing that it isn't working on?
Edit: Hang on a second...there is a problem.
Permalink Reply by Chris Tietjen on February 28, 2013 at 3:51am Try this one. Let me know if you see any problems.
Permalink Reply by Tom on February 28, 2013 at 6:20am I am not say 100% perfect but close enough... Thanks!
Permalink Reply by Chris Tietjen on February 28, 2013 at 11:39am How is it lacking? Can you provide a file where it fails?
Permalink Reply by Chris Tietjen on February 28, 2013 at 7:11pm Let me know if anything else fails.
Permalink Reply by Tom on March 1, 2013 at 3:44am
Permalink Reply by Chris Tietjen on March 1, 2013 at 6:49am This one leaves you with joined curves. If you want them segmented then just explode them in Rhino. Exploding may add a few extra segments but they won't be overlapped. I don't know if having the curves remain as segments is an important part of your work flow.
© 2013 Created by McNeel Admin.
