generative modeling for Rhino
Hello everyone,
I was wondering if there is a way to remove all duplicate curves when the 2D voronoi component creates cells with overlapping curves.
I found the 'join curves' component, but I guess that doesn't remove duplicates only connects.
I also found the remove duplicate lines component from Karamba, but it only works with lines, and I'm puzzled on how to convert the curves into lines.
Thanks for any feedback,
Fernando
Tags:
Permalink Reply by Khizer Ishtiaq on May 24, 2012 at 7:32am You can explode cells, flatten them and then use kangaroo's "removeduplicateline" component to remove overlapping curves
Permalink Reply by Fernando Conti on May 24, 2012 at 7:39am Hi Khizer,
Thanks for the reply. I tried to use explode, but the output are also curves and the removeduplicateline doesn't accept them.
Any ideas? Thanks.
Permalink Reply by Fernando Conti on May 24, 2012 at 7:43am Or rather, the karamba component says that the input is not an instance.
Permalink Reply by Michael Pryor on May 24, 2012 at 8:05am it works fine, a line is a curve in rhino, Khizer suggests to use kangaroo not karamba. the component "remove duplicate lines" in kangaroo.
The Kangaroo (not Karamba) removeduplicateline component will remove duplicate curves as well as lines.
(Actually it will remove any curves which share endpoints with a curve already in the collection, whether or not they match along their length)
Permalink Reply by Fernando Conti on May 24, 2012 at 8:17am Thanks Daniel and Michael, sorry for my reading error.
But when I connect either a curves output or exploded curves output to Kangaroo's removeduplicatelines component, the component gives the error 'Object reference not set to an instance of an object'.
Permalink Reply by Richard Schaffranek on May 24, 2012 at 8:24am You can also use Spiderwebs cleanSetOfLines
Permalink Reply by Michael Pryor on May 24, 2012 at 8:36am
Permalink Reply by Fernando Conti on May 24, 2012 at 8:43am Michael, which explode did you use, what is its name? I can't find a component with that icon, my explode curves component works differently. It outputs some null lines, and I think the removeduplicatelines from Kangaroo can't process those.
I now used cleanSetOfLines and that works. I takes care of the null lines.
By the way, cleanSetOfLine doesn't have a tolerance, but I connected its output to removeduplicatelines from Kangaroo and could set the tolerance there.
Thanks for all the help!
Permalink Reply by Michael Pryor on May 24, 2012 at 8:51am it is called "brep components"
Permalink Reply by Khizer Ishtiaq on May 24, 2012 at 11:17am Hey Michael,
Is there a reason behind using brep components rather than explode curve? (cause explode curve worked for me) Made me wonder if brep components is exploding curves then is there some special condition where it doesn't work n explode curve comes in?
and what is that percentage and ms value under your components?
Permalink Reply by Michael Pryor on May 24, 2012 at 12:08pm Khizer, In this case there is no difference between explode curve and brep components in terms of effectivness, besides maybe computation time, Im just more used to using brep components, however brep components is really handy if for instance you only had surfaces and wanted to extract the edges. the percentage is the profiler widget which lets you know how long each component takes to solve and which in your definition is using the most power.
Added by Mgeorgio 0 Comments 0 Likes
Added by Mgeorgio 0 Comments 0 Likes
© 2013 Created by Scott Davidson.
Powered by