Skip to content

Commit

Permalink
Be more specific about trimesh limitations in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mworchel committed Oct 10, 2021
1 parent 8de0521 commit 1a7a138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ mesh = trimesh.load_mesh("input.obj")
# `uvs` contains texture coordinates of the new vertices (shape Nx2, type float32)
vmapping, indices, uvs = xatlas.parametrize(mesh.vertices, mesh.faces)

# Trimesh does not correctly export the parametrized mesh, so we
# can use the `export` helper function to export the mesh as obj.
# Trimesh needs a material to export uv coordinates and always creates a *.mtl file.
# Alternatively, we can use the `export` helper function to export the mesh as obj.
xatlas.export("output.obj", mesh.vertices[vmapping], indices, uvs)

# Both `xatlas.parametrize` and `xatlas.export` also accept vertex normals
Expand Down

0 comments on commit 1a7a138

Please sign in to comment.