We have a case of incorrectly scaled UV coordinates when I call SUMeshHelperGetFrontSTQCoords on a particular face in a particular scene ( MODERN - carpet 02.skp (379.3 KB) )
We’ve been using the same code on hundreds of different scenes and haven’t had any problems until this case cropped up.
In this particular scene, the material is assigned to the back side of the face (it’s the only one face in the scene; no instances or groups or any other types of objects are present) and the cow hide texture looks fine in SketchUp:
However, in our glTF converted scene it looks too big by a factor of about 2.5x:
I’ve been doing some digging and the only difference between this face and any other in any of the scenes we have is the fact that SUFaceIsBackMaterialAffine(face, &is_affine) returns is_affine = false. For any other face in any other scene, as far as I can tell, it returns is_affine = true. I’m not sure how this came to be, but I’m actually more interested in how I should be handling such a case. Is there some sort of affine transformation matrix associated with the face and/or texture in question with the translation and/or scale that I need to apply to the UV coordinated I’m getting? If so, how do I access this information? So far, I couldn’t find anything pertinent is the C SDK.
Any help would be appreciated. If the problem I’m describing is not clear from the information and the files I’ve provided, let me know and I will go into more detail.