Grasshopper

algorithmic modeling for Rhino

Hey! We have a layered city plan, where each building belongs to a different layer according to its construction date. We want to make a gradient map, where we can show where the oldest buildings are located, based on their density. Any idea how to do that? Thanx in advance..!!

Views: 4521

Replies to This Discussion

Your buildings are meshes or breps or curves on Rhino layers?

It's quite easy to draw coloured dots where the colour represents the age of a building. However it sounds like what you're after is a bucketing of all the buildings, where the colour of a bucket is the average age of all buildings inside it?

How are your layers named?

--

David Rutten

david@mcneel.com

Tirol, Austria

We have layers named after the construction years, which contain curves. We can then extrude these curves according to the height of the buildings etc. I found this image in another thread, we want to create something like that, where the colors represent the age of the building, for example green corresponds to the oldest building etc. 

http://storage.ning.com/topology/rest/1.0/file/get/2768799533?profi...

Since I just got back from a 80km cycle trip in the Alps I'm just going to cheat and use some VB components to solve a few tricky issues.

I made three files, one just colours the points based on age. Another creates a coloured mesh and a third uses the bucketing approach:

One VB script finds the layer name of a referenced object. You can probably use Human tools for this or some other 3rd party plugin, but it's easy to do in VB. The second VB script does the calculate-the-average-age-of-all-buildings-per-region thingy. I'm pretty sure it can be done in pure Grasshopper, but my brain isn't working well enough at the moment.

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

And the third file...

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

I want to understand what the script does, however in the edit script mode, in the utilities functions region i see that " 'Implementation hidden in Script Edit mode...". is there a way to unlock the code, or is it just private? or am i doing something wrong?

Thank you very much for your feedback David! I will now check the files, however, as i'm not familiar with scripting yet, I will not be able to quite modify the output and the functions of the VB Components. I'm pretty sure they will do the job though! I will fill you in. Thanx again.

Plus, whenever I try to google it, keyword  something like "create distribution/denstity diagrams grasshopper" i get info about the population distribution of grasshoppers and the ecological impact..

I suppose that's at least one benefit to calling your program Generative Components or DesignScript :)

--

David Rutten

david@mcneel.com

Tirol, Austria

"create distribution/density diagrams grasshopper3d" adding 3d helps

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service