Rvcg::vcgCurve returns zeros
nialsiG opened this issue · comments
Ghislain Thiery commented
OS: Windows 10
R version 4.2.0
For an unknown reason, vcgCurve returns arrays of zeros regardless of the surface used as mesh
Here is a reproductible example:
library(Rvcg)
data(humface)
curv <- vcgCurve(humface)
summary(curv$meanitmax)
summary(curv$gaussitmax)
summary(curv$K1) #edit: works normally
summary(curv$k2) #edit: works normally
Stefan Schlager commented
Hi,
yes, this is an error introduced by some restructuring in vcglib. I'm on it.
This
summary(curv$k1)
summary(curv$k2)
however, needs to be with capital letters and is working as expected.
summary(curv$**K**1)
summary(curv$**K**2)
Stefan Schlager commented
Please test: You can install it via
devtools::install_github("zarquon42b/Rvcg", ref="fix-vcgCurve")
Ghislain Thiery commented
My mistake, you are right for principal curvatures K1 and K2. I edited the initial post.
After installing the correction, vcgCurve works perfectly. Well done, and thank you !