Recently I was implementing export geometry plugin in Rhino 7. All works fine except retrieving UV coordinates. Values, that I’m getting, don’t correspond to what I can see in Rhino editor.
I’m retrieving UV coordinates via TextureCoordinates property in Mesh class. Firstly I thought that I missed some texture transform like uvwTransform in Texture, but that transform doesn’t include right values. Maybe I missed something and I have to multiply this UVs with some transform or scale or something.
For example, how It looks:
I assigned texture to primitive cube and then I could see two repeats of my texture on top face of that cube, so It seems like UV coordinates place in range (0, 2) or (1, 3) and etc
But UV coordinates, that I retrieve from API, looks like bottom left point = (0, 0), top right point = (0.23, 0.71)
That’s frustrated. And I can’t figure out what I do wrong. Maybe coordinates are shuffled or something but It seems unbelievable.
If someone works with that and knows solution, please help me with that.
P.S. At some moment I thought that this bug comes from Rhino, then I checked all Rhino 7 change logs but still didn’t find anything related with my issue. Or maybe this bug wasn’t reported… Could it be true?