zarquon42b / Rvcg

R-package providing mesh manipulation routines from VCGLIB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rvcg::vcgCurve returns zeros

nialsiG opened this issue · comments

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

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)

Please test: You can install it via
devtools::install_github("zarquon42b/Rvcg", ref="fix-vcgCurve")

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 !