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
Tags:
Forgot the file... :/
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by