Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export UV map in Numpy format #72

Open
Armen-J opened this issue Nov 26, 2021 · 0 comments
Open

Export UV map in Numpy format #72

Armen-J opened this issue Nov 26, 2021 · 0 comments

Comments

@Armen-J
Copy link

Armen-J commented Nov 26, 2021

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 Armen-J changed the title Import UV map to numpy Export UV map in Numpy format Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants