Verifies a mesh object has vertex colors.
Rhino.MeshHasVertexColors (strObject)
strObject |
Required. String. The object's identifier. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Const rhObjectMesh = 32
Dim strObject
strObject = Rhino.GetObject("Select a mesh", rhObjectMesh)
If Rhino.MeshHasVertexColors(strObject) Then
Rhino.Print "The mesh has vertex colors."
Else
Rhino.Print "The mesh does not have vertex colors."
End If