Experiments with mesh quality check and fix
Commit ugly mesh rebuild impl - just for historical purposes