mmg
mmg copied to clipboard
What to do when input triangle quality is too bad?
Hi. I often encounter situations where trying to run mmgs to remesh a bad triangle mesh hits a snag at the following assertion:
Error: MMG5_minQualCheck: too bad quality for the worst element: (elt 21790 -> 0.000000e+00)
Which is ironic because the reason I want to run my mesh through mmgs in the first place is that I have bad quality elements that I want to fix...
What would be your suggested way of dealing with this issue? Can you point me to the code calculating element quality so I can try to filter them beforehand? I'm afraid it would leave holes but maybe that's not an issue for mmgs?