mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-14 19:36:23 +08:00
Single function to load meshes from OBJs. join_meshes.
Summary: Create the textures and the Meshes object from OBJ files in a single call. There is functionality in OBJ files (like normals) which is ignored by this function. Reviewed By: gkioxari Differential Revision: D19691699 fbshipit-source-id: e26442ed80ff231b65b17d6c54c9d41e22b4e4a3
This commit is contained in:
committed by
Facebook Github Bot
parent
23bb27956a
commit
8fe65d5f56
@@ -55,6 +55,9 @@ tex = Textures(verts_uvs=verts_uvs, faces_uvs=faces_uvs, maps=texture_image)
|
||||
# Initialise the mesh with textures
|
||||
meshes = Meshes(verts=[verts], faces=[faces.verts_idx], textures=tex)
|
||||
```
|
||||
|
||||
The `load_objs_as_meshes` function provides this procedure.
|
||||
|
||||
## PLY
|
||||
|
||||
Ply files are flexible in the way they store additional information, pytorch3d
|
||||
|
||||
Reference in New Issue
Block a user