Grasshopper

algorithmic modeling for Rhino

Elevating shattered lines by values associated with regions that contain them

Hello - 

I have been wresting with a bit of a problem. 

I have a list of Lines (Protection Lines) and a list of Breps (Base Flood Elevations). Most of the "Protection Lines" do not exist in a single "Flood Zone". It was easy enough to determine where the intersections between the "Flood Zones" and "Protection Lines" and shatter the lines at those points. However, now what I need to do is to move each new line segment in the positive z direction based on the value associated the "Flood Zone" that it is contained by. 

I am at a complete loss to figure out how i can select the segments within each "Floor Zone" and elevate it by its correct associated value. 

I've attached the data and the beginning part of the definition. Any help would be appreciated. 

EG

Views: 640

Attachments:

Replies to This Discussion

Hi Eric,
for cases like this I think TrimWithRegions is the best suited component to use. I used ListLength to create the culling pattern for the branches without intersections.

Attachments:

Thank you! Thank you! Thank you!

I am still a bit of a noob with the data tree thing, but it seems like yo elegantly incorporated a few concepts that are going to be super useful. This is really just the first step that I had to do in a longer process, but I am seeing (i think) how i can re-use the same concept to deal with the next level of data. 

I'm sure i'll hit other road blocks, but your time and attention on this is deeply appreciated. 


EG 

You're welcome Eric, thank for your reply :)
I got a little justification though:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service