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

Documentation for igl.principal_curvature(): output order is incorrect

Open mihamerstan opened this issue 5 years ago • 1 comments

The documentation for principal curvature states that the output is: pd1, pd2, pv1, pv2 = principal_curvature(v, f)

where pd1 and pv1 are maximal direction and value, respectively, and pd2 and pv2 are the corresponding minimals. The function, however, returns them in the opposite order:

pd2, pd1, pv2, pv1 = principal_curvature(v, f)

An easy test is simply to compare the values.

mihamerstan avatar May 12 '21 18:05 mihamerstan

Hi Michael,

This is fixed very recently https://github.com/libigl/libigl/pull/1767

jiangzhongshi avatar May 12 '21 19:05 jiangzhongshi