Surfaces of a mesh

Hi, I am trying to find the surfaces of the mesh individually and apply colour on each face when a double click event occurs. It works as intended with a box but when I use a cylinder with tessellation 4 it applies the colour on the surfaces but the colour fades on adjacent surfaces which I do not want, I want it to be restricted to that face. Any ideas what I’m doing wrong?

A vertex can be shared with several faces, so if you change its color, this can have an impact on several faces.

If you want to use this technique, you’ll need to duplicate the vertices to ensure that each face has its own 3 vertices that are not shared with another face.

Alternatively, you could create a separate mesh corresponding to the selected face.

1 Like

Thanks @Evgeni_Popov.