Tuesday, June 11, 2013

GH: FLOW AROUND

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
GRASSHOPPER FLOW AROUND


This definition flows curves around closed Breps

LOGIC
1. Create a series of curves 
2. Intersect those curves with closed Breps.
3. Find which points of the curve exist within the Breps
4. Separate Single surface Breps from Polysurface Breps
5. Pull inner curve points to surface or Brep edges depending on type
6. Combine new displaced points with curve points outside of Breps
7. Create flowline 

GH Version
0.9.0014


Tip
This definition is very loose in that is made for you to add your own rules. In this case I use 
edges on polysurfaces which you may not want so experiment with other logics. Try using the
vector between the internal points and the new displaced points to increase the amount of
displacement. Since surface division structure is similar to curve division try this same logic
but with surface divisions essentially creating flow around surfaces.  






Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

3 comments:

  1. When I add more than one breps, the lines just flow over one object but do not respond to the rest. Anyone knows how to fix this?

    Thank you!

    ReplyDelete
  2. Hey Rania!

    I have the same problem. Were you able to resolve it? I really need this urgently and have tried my best already to resolve it. Id be really grateful if you can share the solution with me, Thanks is advance.

    ReplyDelete
  3. Hello Michael. Thanks for the script. I have been trying to create a flow of lines on my masterplan but I am having trouble to generate it. Here is my email : benyarchitects@gmail.com . Would be great if you could help! Thanks so much

    ReplyDelete