Stripper node with vertex colors?

When using the K2 Stripper node in Kangaroo, it removes the vertex colors from a mesh. For example, if you input a cylindrical mesh into the Stripper, it adds an extra row of vertices as the first and last rows in the cylindrical mesh share the same vertices which complicates mapping the vertex colors correctly to the stripped mesh. Is there was smart way to correctly remap the colors after stripping?

One way is to pull the colors from the closest point on the original mesh:


strippercolor.gh (9.7 KB)

More efficient would be modifying the code to bring the colors across while making the strips, but unless this is for gigantic meshes or realtime application it probably doesn’t matter.

yeah, that works. thanks