Few issues with variational surface cutting
Hi,
I'm running your tool on few meshes I have. Meshes from a scan to be precise.
On one of these I get the following error:
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR: Invalid value in solveYamabeProblems()
Where I found here you check for the distortion, I'm not particularly familiar with the Yamabe problem so I don't know exactly what you solve there. My guess is however my mesh is a bit noisy and this probably affects the optimizer somehow.
Can you help? The mesh is a tri-mesh (it should be manifold) about 20k big (triangle counts) and watertight.
Sometimes also the normal-clustering doesn't really work, it just crashes, but this is specifically related to the solver I guess.
Another issue I had, with a different mesh was that it was getting stuck in the following loop in your code (like infinite loop) more specifically here
Copying this from the other issue, but the only easy thing I can suggest from a distance is to try remeshing your input. Scan data sometimes has lots of low-quality skinny triangles in it, which can contribute to numerical ill-conditioning.