Grasshopper

algorithmic modeling for Rhino

Hi!

I want to create lines in between these polygons in order to create the axis of the streets

can anyone help me? Thank you

I attach the rhino file

Views: 1249

Attachments:

Replies to This Discussion

If you have just that to do and not a country it seems easier to make it with Rhino and a mouse. It will take you 1/2 h to 1 hour. Making a script could certainly be more difficult with no garanty to fit what you want. But an interesting challenge :)

A copy of you map. Try to do that it is more easy for people to look at an image thant to open a file. 

Look up "medial axis" here on the forum, there are several posts with examples of different implementations (all based on the Voronoi method though as far as I recall).

Yes "medial axis" so it is more simple than I thought but very long. Surely some optimization is necessary !

Attachments:

Faster, less warning but still some problems due to geometry, building with holes inside. Curves touching each other. If you want little roads you have to augment the number of division in curve or better put curve division depending on the length ... so constant length division. If you want to straitghten the curves fixe the node (roads intersections) and link them with lines. 

100 points per curve => 720 s !

20 points per curve => 90 s !

GH file with internalized curves and 5 for the division. 

Attachments:

Anders there are not just Voronoi based, I propose a geometric one, see here : 

http://www.grasshopper3d.com/forum/topics/sand-dune-medial-axis-sample

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