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
When using the cut_edges function on a closed manifold mesh with a chain of connected edges, I noticed excessive vertex duplication. All edges in the mesh were duplicated, with most of the new vertices left unreferenced.
I followed the documentation-examples and used the following code:
For example, the original mesh had 5389 vertices, but the length of the returned indices was 32322, even for a short path (of only 3 edges).
Upon inspecting the source code, I noticed that remove_unreferenced is already included. However, it does not appear to work effectively in reducing the excess vertices. I had to manually use:
While this workaround helps, the excessive duplication and the apparent ineffectiveness of remove_unreferenced make the process more cumbersome than necessary.
Let me know if more details or test cases are needed to help resolve the issue. I’d be happy to assist further.
The text was updated successfully, but these errors were encountered:
Hi @karinsifri ,
Can you suggest a fix (via PR) that includes the correct removing of unreferenced vertices?
(Please also include the example mesh you ran the code on.)
Thank you for your response! I appreciate the opportunity to contribute.
I’d be happy to look into the issue and attempt to debug the root cause in the code. While I currently need some time to review and understand the source of the problem, I’ll work on identifying the issue and suggesting a fix via a PR when I’m able.
In the meantime, I’ve included the details of the mesh I worked on and the path I was trying to cut, as shared earlier. I’ll keep you updated on my progress.
The mesh I have worked on is C_r2.txt (this is .obj file but i have changed it's extension to be able to upload it)
When using the
cut_edges
function on a closed manifold mesh with a chain of connected edges, I noticed excessive vertex duplication. All edges in the mesh were duplicated, with most of the new vertices left unreferenced.I followed the documentation-examples and used the following code:
For example, the original mesh had 5389 vertices, but the length of the returned indices was 32322, even for a short path (of only 3 edges).
Upon inspecting the source code, I noticed that
remove_unreferenced
is already included. However, it does not appear to work effectively in reducing the excess vertices. I had to manually use:While this workaround helps, the excessive duplication and the apparent ineffectiveness of
remove_unreferenced
make the process more cumbersome than necessary.Let me know if more details or test cases are needed to help resolve the issue. I’d be happy to assist further.
The text was updated successfully, but these errors were encountered: