# Displaying temperature values as colored mesh

Hello,

I am working on thermal conditions in the built environment, and I would like to display the values I measure as a colored diagram in my plan view.

My intuition is to use a flat mesh to represent the space in plan view, with points representing the sensors’ positions. According to the value measured, I move the point on the Z axis. From the calculation of closest point, I then color the mesh.

The Grasshopper definition I’m using

The result in Rhino

However, I am facing a major issue here: everything outside of the “influence” of my points is displaying a maximal value. For example, in the above example, my points are both displaying 18 °C, which is blue, but it results in a red corner, which is, in a thermal point of view, not correct. It should display an average value of my 2 sensors values (in this case 18 °C), so everything should be the same color.

I think my whole approach may be wrong, but I would be glad to have some input to achieve this more precisely. Does anyone know how to do this? I searched in the forum and out there on the internet but I can’t find a similar process from which to fork.

Thank you,

1 Like

Sorry, here are the files I’m working with:

No. Not really.

here you are mapping all points bounded from nearest to farthest.
Nearest to your 2 points = blue
Farthest to your 2 points = red (the top right corner)
All the in between point will have a gradient…

Why should temperature rise if you are far from the sampled points???
Why not colder?
That’s a wrong logic.

Use Mesh Spray component.
But to be able to see any decent results you will need more than 2 points and with different colors

Even better.
Evaluating mesh vertex distance from sampled points or using Mesh Spray, both will consider linear distance, even by “passing through walls”, which is probably wrong, i guess.
Heat should only travel through the actual geometry you have, right?
See Heat Method

1 Like

It seems that Mesh Spray is a better tool for what I’m trying to do.
I have more than 2 values, it is just a testing script for now

This topic on Heat Method seems very interesting: for now I’m only dealing with values that are in the same room, I’ll look into it!

Thank you @maje90

1 Like
1 Like

If your sampling points are enough, you will have a small error of “passing through walls”…
If, for example, you sampled also the corners of your room, the difference of the heat method from mesh spray will be small…

Yes, thanks a lot, this is great help!
This turns out to way simpler than what I was trying to do