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

Import of 3MF file fails due to exception - NMR_ERROR_INVALIDMODELCOORDINATEINDICES(1 mesh object has 2 triangles with all vertex indices 0) #305

Open
akayer1w opened this issue Sep 16, 2022 · 1 comment
Milestone

Comments

@akayer1w
Copy link

When trying to import below attached 3MF file(having 1 mesh object has 2 triangles with all vertex indices 0), lib3mf gives an exception - NMR_ERROR_INVALIDMODELCOORDINATEINDICES from source file NMR_ModelReaderNode100_Triangles.cpp and import of 3mf fails.
However, when this 3mf file is opened in 3D builder, it gets open successfully.

Below if condition gets failed and hence exception is thrown, (code snippet form NMR_ModelReaderNode100_Triangles.cpp)
if ((nIndex1 != nIndex2) && (nIndex1 != nIndex3) && (nIndex2 != nIndex3))
{
Some code...
}
else throw CNMRException(NMR_ERROR_INVALIDMODELCOORDINATEINDICES);

Instead of throwing an Exception, can an error be displayed and aborting import of 3mf file avoided?
When the strict mode is disabled, Instead of throwing an Exception can we display error message and continue reading rest of the 3mf file?
Cube_2In_Faulty.zip

@akayer1w
Copy link
Author

@martinweismann Request you to provide your inputs on this issue.

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

No branches or pull requests

2 participants