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

Singular matrix resulting in non-square map #2

Open
alex997-phy opened this issue Sep 16, 2024 · 3 comments
Open

Singular matrix resulting in non-square map #2

alex997-phy opened this issue Sep 16, 2024 · 3 comments

Comments

@alex997-phy
Copy link

Hi,

I am mapping a 3d mesh into a 2D square. Although some meshes work good, some of them shows warning "
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.110223e-16.> In rectangular_conformal_map (line 132)
Warning: Matrix is singular to working precision. > In rectangular_conformal_map (line 161)
Warning: Matrix is singular to working precision. > In rectangular_conformal_map (line 162)".

It should be the problem that the matrix M (M = cotangent_laplacian(v,f)) is singular. And as a result, the 2D map is no longer square and the angle distortion is large. I do not know what to do to prevent this problem happening. I have tried to smooth the mesh but nothing changes. Would you mind helping me in solving this problem?

Thanks,
Alex

@muzire
Copy link

muzire commented Sep 16, 2024 via email

@garyptchoi
Copy link
Owner

Hi,

I am mapping a 3d mesh into a 2D square. Although some meshes work good, some of them shows warning " Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.110223e-16.> In rectangular_conformal_map (line 132) Warning: Matrix is singular to working precision. > In rectangular_conformal_map (line 161) Warning: Matrix is singular to working precision. > In rectangular_conformal_map (line 162)".

It should be the problem that the matrix M (M = cotangent_laplacian(v,f)) is singular. And as a result, the 2D map is no longer square and the angle distortion is large. I do not know what to do to prevent this problem happening. I have tried to smooth the mesh but nothing changes. Would you mind helping me in solving this problem?

Thanks, Alex

Hi Alex, it will be good to check whether there are any degenerate faces/small topological holes/bad boundary vertices in the input 3D mesh, as they may cause the singular matrix issue. If you can send me the mesh file via email, I will be happy to look into it further.

@alex997-phy
Copy link
Author

alex997-phy commented Sep 16, 2024 via email

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

3 participants