mesh.VertexColors.Tag

Hello!

Can someone explain to me please what is the purpose of these Mapping Tags that you can get or set in mesh.VertexColors.Tag?

I tried to understand example there, but without success: MeshVertexColorList.SetColors Method

Normally when I want to color a mesh and I use Mesh Colours component then there are only 2 inputs: Mesh and Colours, which is understandable, but in the example above these tags are also being set. Do I have to set them also if I want to just simply color the whole mesh?

Hi @w.radaczynski,

A mesh is coloured per vertex

Than you can use this method:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Collections_MeshVertexColorList_CreateMonotoneMesh.htm

1 Like

Thank you, haven’t seen that CreateMonotoneMesh method, for one color for the whole mesh that should be it :slight_smile: