kyle-gh / LeastSquaresConformalMaps

Implementation of Least Squares Conformal Maps for Automatic Texture Atlas Generation by Levy et al.
30 stars 5 forks source link

lscm: /usr/local/include/OpenMesh/Core/Mesh/ArrayKernel.hh:178: const OpenMesh::ArrayItems::Face& OpenMesh::ArrayKernel::face(OpenMesh::ArrayKernel::FaceHandle) const: Assertion `is_valid_handle(_fh)' failed. #2

Open guihuazgh opened 4 years ago

guihuazgh commented 4 years ago

Sorry, I ran into another problem when I was testing other models. When I was testing my own model, I encountered the following problems: error: lscm: /usr/local/include/OpenMesh/Core/Mesh/ArrayKernel.hh:178: const OpenMesh::ArrayItems::Face& OpenMesh::ArrayKernel::face(OpenMesh::ArrayKernel::FaceHandle) const: Assertion `is_valid_handle(_fh)' failed. In order to eliminate the problem of my mesh, I used other simpler mesh for testing.It is found that some mesh will encounter the same error. The error occurred on line 202 of the charbuilder.cpp file and occurred in this statement“_mesh->fe_begin(faceOpp)”.

kyle-gh commented 4 years ago

Thank you for taking the time! Would it be possible to get the mesh you encountered the error with?

guihuazgh commented 4 years ago

Sure.The test mesh I used was a Teapot mesh in 3D Max.

kyle-gh commented 3 years ago

I've committed a fix that should address your issue. Let me know if the issues still persist!