Building heights heatmap

I would like to do something like that (pic below). Or with gradient not smooth but in the increments of let’s say 1m.

I have a site model:

How would you go about it?
I wanted to do:

  1. move ground plane (nurbs* surface) up many times
  2. intersect the surface (nurbs or mesh) with buildings (nurbs or meshes) (problem)
  3. Somehow get the distance between the vertex of between first and x interesting in one building
  4. Colour meshes based on those distances.

Hope you have a better idea.

Hi @kacperpach42,

Here is a cheap sample that produces this:

image

The magic is setting mesh vertex colors so as to provide a “false color” appearance.

I reverted to using some C# code because I am lame a Grasshopper. But hopefully this will move you forward. The code uses the Z-coordinate of mesh vertices to cook up a color in a range.

test_false_color.gh (32.0 KB)

Hope this helps.

– Dale

3 Likes

:scream:
… i couldn’t resist:

2 Likes

Hi @maje90,

That’s great, thanks. Like I mentioned, I’m far better at typing then at wiring up components.

– Dale

1 Like

Hello everyone! Thank you for sharing this, it’s exactly what I needed!
Just wondering if there’s any way to adjust the colour outputs of the gradient?
I’m a total grasshopper newbie, my apologies!

Hi Laura.
What we did is just mapping 0-1 values to the hue value to create a color.
Do you have a different palette/gradient?

Consider attaching here what you have and also consider opening a dedicated thread.