I’m using Maya API 2.0 to import a mesh from a custom format.
I have the verts and polys building correctly,
and all the UV coordinates are correct - but only for the for the “first” UV shell.
what I want:
what I get:
For the remaining shells, I have discontinuous UV data
describing verts shared across polygons with different UVs
{
83: [
(213, [0.2102842628955841, 0.9795976281166077]),
(214, [0.2102842628955841, 0.9795976281166077]),
(327, [0.6289558412102842, 0.1166077979597628]),
(329, [0.6289558412102842, 0.1166077979597628]),
],
...
}
so vertex[83] has identical UVs inside polys[213,214]
and a second set of UVs inside polys[327,329], thus a different island
I’m not sure how to build the remaining UV shells with MfnMesh