You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with PyMeshLab and reading a mesh that includes wedge texture coordinates, which gives me the UV coordinates for each vertex of a face in the shape of (F x 3) x 2. I need to convert this into the format required by PyTorch3D, where the faces_uv stores indices relative to the verts_uv. This means that instead of storing actual UV coordinates for each face, I need to store indices pointing to the unique UV coordinates (verts_uv).
The conversion process involves deduplication of the UV coordinates and creating an index lookup, but this deduplication can be quite slow for large meshes.
I have tried using np.unique, but I’m looking for a more efficient way to perform this operation.
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Have you tried the compute_texcoord_transfer_wedge_to_vertex filter?
It should do what you weed, including splitting vertices with not coherent Wedge coordinates, quite fast.
Hi everyone,
I am working with PyMeshLab and reading a mesh that includes wedge texture coordinates, which gives me the UV coordinates for each vertex of a face in the shape of (F x 3) x 2. I need to convert this into the format required by PyTorch3D, where the faces_uv stores indices relative to the verts_uv. This means that instead of storing actual UV coordinates for each face, I need to store indices pointing to the unique UV coordinates (verts_uv).
The conversion process involves deduplication of the UV coordinates and creating an index lookup, but this deduplication can be quite slow for large meshes.
I have tried using np.unique, but I’m looking for a more efficient way to perform this operation.
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: