libigl-python-bindings icon indicating copy to clipboard operation
libigl-python-bindings copied to clipboard

"Error: Numerical Issue" on ARAP

Open Alex-ThermoMind opened this issue 3 years ago • 3 comments

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

Alex-ThermoMind avatar Nov 20 '23 09:11 Alex-ThermoMind

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

MengtingWang1 avatar Mar 18 '24 14:03 MengtingWang1

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

alecjacobson avatar Mar 18 '24 14:03 alecjacobson

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 https://github.com/libigl/libigl-python-bindings/issues/210#issuecomment-1738733309

yizhangphd avatar Apr 08 '24 02:04 yizhangphd