UVAtlas icon indicating copy to clipboard operation
UVAtlas copied to clipboard

Export UV map in Numpy format

Open Armen-J opened this issue 4 years ago • 0 comments

Given a 3D mesh model geometry, with only the vertices and faces in a format like the following, how can I generate the (H, W, 2) UV maps in Numpy or a format that can be read in python and converted to Numpy? (Do I even need the texture info, as mtl lines in the .obj file?)

The .obj file only has the faces and vertices in this way: v 0.57735 -0.57735 -0.57735 v 0.57735 -0.57735 0.57735 v -0.57735 -0.57735 -0.57735

f 19 3 2 f 12 19 2 f 15 12 2

Armen-J avatar Nov 26 '21 14:11 Armen-J