Open gleb-an opened 3 years ago
Hey, is the mesh referencing vertices that don't exist? For example I can reproduce with:
mesh = trimesh.Trimesh(vertices=[], faces=[[0,1,2]])
mesh.merge_vertices()
Where faces reference vertices that aren't there. I added an early exit for the case where len(mesh.vertices) == 0
but in the wider case (faces reference non-existent vertices) I think raising an IndexError
is probably the right thing to do.
I have arrays like this(attached) faces.txt vertices.txt
any updates on this?
I got this error when I execute
mesh.merge_vertices()
ormesh.process()
with the trimesh==3.9.20The same error I got with the 3.9.10 version.
This code works with the 3.9.1 version!
Python 3.8 OS Ubuntu 20.04