I have a mesh that is being generated from a GH script that results in a mesh that is coloured by the amount of sunlight a division receives. Is there a way to explode this mesh, select each segement by colour, then I would like to merge the meshes of the same colour and put in their own layer.
Your coloring was done with a per-vertex logic… this required each face having its own dedicated vertexes.
(no vertex is shared by 2 faces, so almost every vertex have many duplicates…)
This solution join all your meshes, create a set of unique colors, and then create a partial mesh for each color. Bake the final component.