Search code examples
meshlab

How to change the RGB values of selected vertex in meshlab?


I have loaded a textured pointcloud and I would like to put seeds (or call it labels ) of different colors (red, green) in the pointcloud. How to do this is meshlab? I know that in meshlab I can select vertex clusters, but how to assign a color value those selected points?


Solution

  • Each vertex has a parameter vsel that is equal to 1 if the vertex is selected, so you can use the filter "Per vertex Color Function" and write and expression that uses vsel, for example:

    r = 255 
    g = 255 * vsel
    b = 255 * vsel