No vertex colour

Hello, I have a problem with the vertices of a mesh. I have scans in .obj format and the texture in .jpg format with the relative .mtl file. I can’t associate the color to the vertices of the mesh. I tried to use the ComputeVertexColor function but it doesn’t work. Are there solutions or other functions that can be used?

Hello
obj file are read by Rhino and the texture file is associated to the object, the vertex get a texture coordinate not a color. Because for big triangles you’ll loose all the image information between pixels.

With a program you can get the texture coordinate at each vertex of a mesh
With Grasshopper I’ll do like that.
A = mesh.TextureCoordinates;

It will give you a UV coordinate and you can can use this coordinate with image sampler to get the color at each vertex.

Initial object exported from OBJ

Also you will see in obj file vt coordinate, it is texture coordinate.
image

It works, thanks!