Get mesh face centers in grasshopper?

Im trying to colourise a mesh based on height using grasshopper and while the basic premise is working as it should, i need the centroids of the mesh faces and not the centroid of the whole mesh. Ive tried everything io can think of and the only way ive managed it is to actually unweld and explode the meshes into individual triangles which is very slow to work with.

Any ideas how i can achieve this purely in grasshopper?

Hello
there are many discussions on this subject

and you can use Google at your advantage to search on this forum

What is not clear is if you want color on face or on Vertex. On Vertex is far more simple in Grasshopper.
Just deconstruct mesh, then deconstruct vertex to have the Z, then apply whatever you want to transform Z in a color then reconstruct mesh.

Thank you, the vertex approach will work fine for my purposes. I hadn’t considered rebuilding the mesh as the end step. I’ll give that a try thank you