Grasshopper

algorithmic modeling for Rhino

Extrude to set heights, based on number of Objects within set distance

Hey there guys, 

Task: I'm having a go at getting some height extrusions to some building plot sizes based on their proximity/ distance to there neighboring plots.

eg. any plot with <1  neighbor set to extrude to 3500mm,  
any plot with >2 to <4 would be extruded to 7000mm.

So I have started with plot sizes, to find their center point (Area average) and then creating a circle around said plots as a means to find neighboring plots/ circles.

My question is how do i go about setting up the order from finding the amount of neighbors to allocating their set extrusion heights?

 As you'll see from the gh file, i have a basic understanding, still trying to get my head around how to use lists effectively. I know i can sort them and pull indexs' out with certain parameters but I just don't have the knowledge

Views: 772

Attachments:

Replies to This Discussion

Ok, so I see the mistakes pretty quickly. I have attached 2 versions of your script to show you how to check some values and use other values as a result. The first one is just using 2 values and the second one is checking against multiple things. I have added some notes inside and have simplified some things to show you the ideas. Its a common pattern, which I use a lot in grasshopper work.

I hope that helps :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service