What is the rhino c++ api function for cmd "ComputeVertexColors"?

My system is Rhino 6 C++ SDK.
There is a mesh with a texture map.
I want to set vertex colors from the texture by using api function, not cmd script.
How can I do?
Please give me a sample.

Hi @john12,

Please review the following SDK sample and let me know if you have any questions.


– Dale

Thanks for your reply.
Another question inversely.
There is a mesh with vertex colors, and I use planar parameterization (square) to set texture coordinates for each vertex.
How to generate the texture image?
Please give me a sample.

Sorry, I don’t have one.

Is there a Rhino command that does what you want?

– Dale