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

"Error: Numerical Issue" on ARAP #217

Open
Alex-ThermoMind opened this issue Nov 20, 2023 · 3 comments
Open

"Error: Numerical Issue" on ARAP #217

Alex-ThermoMind opened this issue Nov 20, 2023 · 3 comments

Comments

@Alex-ThermoMind
Copy link

I am attempting to perform parameterization using the ARAP class provided by igl.

I start with an open3d mesh generated from a scan (Note it is partial scan of object -- not watertight). I then extract the vertices and triangles from the mesh:

v = np.asarray(mesh.vertices) f = np.asarray(mesh.triangles)

From there I follow the procedure as written in the igl python bindings chapter 4 example for ARAP: I generate an initial guess using harmonic_weights to find circular parameterization, and from there plug this into the arap.solve function.

This works most of the time, however there is occasionally a "Numerical Issue" leading to a failed parameterization.

I tried looking into reasons why this could be happening but I am still unsure. I have tried filling small holes in the mesh, checking the mesh is vertex manifold and edge manifold, but the parameterization fails regardless.

Does anyone know the conditions required from the mesh to ensure stable parameterization?

Any advice would be greatly appreciated

@MengtingWang1
Copy link

It seems I'm having the same problem,Running Obj Marching Cubes ,and vertices.shape and triangles.shape is (0, 3) and (0, 3)

@alecjacobson
Copy link
Contributor

if you're triangle has no vertices or faces then arap won't work

@yizhangphd
Copy link

I am attempting to perform parameterization using the ARAP class provided by igl.

I start with an open3d mesh generated from a scan (Note it is partial scan of object -- not watertight). I then extract the vertices and triangles from the mesh:

v = np.asarray(mesh.vertices) f = np.asarray(mesh.triangles)

From there I follow the procedure as written in the igl python bindings chapter 4 example for ARAP: I generate an initial guess using harmonic_weights to find circular parameterization, and from there plug this into the arap.solve function.

This works most of the time, however there is occasionally a "Numerical Issue" leading to a failed parameterization.

I tried looking into reasons why this could be happening but I am still unsure. I have tried filling small holes in the mesh, checking the mesh is vertex manifold and edge manifold, but the parameterization fails regardless.

Does anyone know the conditions required from the mesh to ensure stable parameterization?

Any advice would be greatly appreciated

I had the same problem and this answer solved my problem
#210 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants