Texture Transformation matrix

If you can get the [U, V] from [X, Y, Z] you can query enough information to reconstruct the matrix and its inverse.

I have an old code sample for the full matrix (that includes perspectivic distortion), but it is very slow in Ruby. Maybe it is faster when reimplemented as C extension. SketchUp’s API should have something like UVHelper.get_XYZ(uvq)

2 Likes