Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive Duplicate Vertices in Imported Mesh in MuJoCo #1783

Closed
binbinbai opened this issue Jul 4, 2024 · 3 comments
Closed

Excessive Duplicate Vertices in Imported Mesh in MuJoCo #1783

binbinbai opened this issue Jul 4, 2024 · 3 comments
Labels
question Request for help or information

Comments

@binbinbai
Copy link

Hello,

I encountered an issue when importing a mesh with 48,164 vertices into MuJoCo. When I accessed the vertices through sim.model.mesh_vert, the number of vertices reported was 193,569, which is significantly larger than the actual number of vertices. Upon filtering out the duplicate coordinates from the 193,569 vertices, I found the correct number of vertices to be 48,164. This indicates that there are a large number of duplicate vertices in the MuJoCo representation of the mesh.

Could you please explain the logic behind these duplicate vertices? Additionally, I would like to restore the vertex count to 48,164 while ensuring the order is consistent with the original mesh indices. How can I achieve this?

@binbinbai binbinbai added the question Request for help or information label Jul 4, 2024
@yuvaltassa
Copy link
Collaborator

Interesting! Can you please provide the mesh so we can reproduce?

@binbinbai
Copy link
Author

Sure,here is the stl file
stamp.zip

When opening the STL file in MeshLab, the number of vertices is 48,164.However, when importing the same file into MuJoCo, the face count is correct, but the vertex count is significantly higher.
stamp_meshlab

mujoco_vert

@yuvaltassa
Copy link
Collaborator

I didn't get around to looking at this yet, any reason why you closed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for help or information
Projects
None yet
Development

No branches or pull requests

2 participants