Skip to content

Export UV map in Numpy format #72

@Armen-J

Description

@Armen-J

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions