• Michaël Ramamonjisoa's avatar
    include TexturesUV in IO.save_mesh(x.obj) · 6ae6ff9c
    Michaël Ramamonjisoa authored
    Summary:
    Added export of UV textures to IO.save_mesh in Pytorch3d
    MeshObjFormat now passes verts_uv, faces_uv, and texture_map as input to save_obj
    
    TODO: check if TexturesUV.verts_uv_list or TexturesUV.verts_uv_padded() should be passed to save_obj
    
    IO.save_mesh(obj_file, meshes, decimal_places=2) should be IO().save_mesh(obj_file, meshes, decimal_places=2)
    
    Reviewed By: bottler
    
    Differential Revision: D39617441
    
    fbshipit-source-id: 4628b7f26f70e38c65f235852b990c8edb0ded23
    6ae6ff9c
test_io_obj.py 46.4 KB