Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8676

Set Mesh Vertex Color

$
0
0

@samlochner wrote:

I would like to change the color of a mesh vertex. I tried to see if I could turn a meshes points on to see the vertices, and then click on one, but from there I couldn't find any setting for color.

Alternatively, I tried to do it programatically by setting certain index vertices' color. But while I was able to change all of the vertex colors, it doesn't seem to work when I do it selectively as I show below. Any suggestions?

Thanks,
Sam

For i = 0 To MyMesh.Vertices.Count - 1
  If i < 20 Then
      MyMesh.VertexColors.SetColor(i, Drawing.Color.Green)
   End If
Next

Posts: 12

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 8676

Trending Articles