Grasshopper

algorithmic modeling for Rhino

Dear All,

I'm trying to model an urban area to do some analysis (Similar to Space Syntax), I have used Google maps to trace the plots, roads, zones...etc

The attached file shows a small part of the overall master-plan to save you the hassle.

What I basically want to do is to convert these lines into individual plots to start analyzing them.

I have no clue on how to do something like that. Can someone help please. Tracing them by hand would take ages. I'm sure there should be a simple solution to automate this.

Many thanks in advance.

regards,

Omar

Views: 829

Attachments:

Replies to This Discussion

I don’t know if it will help you or not. Surface split operation will take time.

Attachments:

Hi Omar, Hyungsoo,
there is a component out there that does this, but I forgot the name...
In the mean time: you can speed up the SrfSplit operation quite a bit by doing this:

But then again 15 seconds isn't that bad compared to tracing them by hand :)

Forgot the file... :/

Attachments:

Nice solution, Pieter! Please let me know if you can remind that component later.

Thank you Hyungsoo.

Ah, I found what I thought could solve this: Closed Curve Intersection Network, great work by David Stasiuk. Too bad I remembered wrong: it's of no use here (results in duplicates and random curve directions).

Try searching the forum for CurveBoolean and half-edge (half-curve) approaches.

And thank you Pieter, that's very clever,I haven't looked at how it works yet , but it does...

You're welcome Omar:  
I'm making separate branches from the open curves, by checking how close their startpoints are to each of the planar surfaces (from the closed curves). If the distance is not within the 'near zero' tolerance, it gets culled from the branch. Now you have for each surface a branch/list of open curves to split it with.

Brilliant... On my machine it runs almost 35 times faster.

Just makes you wonder how many such GH hacks are hiding in plain site   :)

Thanks a million Hyungsoo, this works perfectly.

Time is not an issue for me, because I'm going to do this operation once, it's an existing urban plan, so no iterations.

Thanks again

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service