Grasshopper

algorithmic modeling for Rhino

Hello everyone,

 

I created a geodesic dome using delauney edges and everything works fine.

I would like to export this file to dxf. The problem is that if I bake the different lines (from different line lists), some of the lines are baked double or triple...

 

The origin lies in the line lists. Every list contains a number of lines. But list A contains some of the lines of list B and this is the case for all of the lists.

I would like to merge all these lists in one big list, where every line is only presented one time.

Is there an option te remove the overlapped data in order to construct a clean dxf file with no hidden lines?

 

Thank You!

 

Lara

Views: 11036

Replies to This Discussion

I would bake and then use the "_seldup" command in Rhino....with some luck, things will match up and the duplicates will be selected...
i have the same issue in one of my definitions, and I think it actually messes up my definition downstream, so selDup won't work, i'd like to see an answer to this.
The only way I know of getting rid of duplicate curves in a pure GH way is to test the curve end points for same coordinates and delete them if they do. Obviously this method only works if the duplicate curves have the same end points but not the same as the other duplicated curves. And there can be no single curves with the same coordinates as duplicated curves or they will also be deleted. Does that make any sense?

I have not been active on this forum for a long time so there might be much easier ways to do this that also work for more complex situations, or some VB script that sorts it out. But the best would be if it were possible to stop duplicates from happening at all earlier in the definition.
in my case it is duplicate rectangles.
Hmm...

This topic has been ongoing. Ideally it needs to be scripted by someone.

http://www.grasshopper3d.com/forum/topics/how-to-delete-double-obje...
This seems to be something several people have wanted for a while.
(and the definitions that have been posted based on sorting points by coordinates and then comparing them do not actually work in a lot of cases, such as when they are aligned in rows)

So I am sharing a few very simple tools I wrote for this sort of thing as part of Kangaroo.
removeDuplicatePoints - pretty self explanatory. optional tolerance setting
removeDuplicateLines - so far just for straight lines. also with tolerance setting
interconnectPoints - This could be done before by cross-referencing the point list with itself in a line component but this does it without the nasty mess of duplicates and invalid lines.

and all nicely wrapped up as proper grasshopper components thanks to what I learned in Giulio's class ! - just download the .gha file and put it in ....\Rhinoceros 4.0\Plug-ins\Grasshopper\Components
(this file contains just these 3 components - not the whole Kangaroo)
Attachments:
nice job...nice graphic ... waiting for the kangaroo.....and the springs... ;)
Thanks - it is bouncing its way closer...

Incidentally, I just noticed that it is possible to 'misuse' the removeduplicatePoints component in an interesting way - if you start with a fairly dense grid of points, then push the tolerance well above the grid spacing you can get a rough packing of equal sized circles (with radius of half the tolerance), and if you use only the points within a certain shape then you can fill that shape with circles. (Should work with packing spheres in volumes too, but that would probably be very slow)

Looks good Daniel.

Can anyone share with what classes to override or methods for making a .gha file including but? I've started developing some of my plug-in commands to work in Grasshopper, but haven't attended Giulio's class. I can basically see how this works, but would appreciate if there was any reference that offers instructions.

Thanks in advance,

Jon
Thank you for the solutions!

Lara
I guess for removing duplicate rectangles, i'll just explode them all into lines and then use your component?

thanks for sharing!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service