Page 1 of 1

Calculate Gradient returning NaN

Posted: Fri Mar 12, 2021 2:32 pm
by TechTeam
Hi there, relatively new to cloud compare, so this might be a really easy fix.
I am trying to compute gradient on a C2M singed distance scaler field for a point cloud with 1,107,667 points. Each time I run it returns a grey point cloud consisting of either NaN or a single value with the majority of points as NaN.
I have no idea why its doing this, and have been able to run the gradient scaler field on other point clouds.

Re: Calculate Gradient returning NaN

Posted: Sat Mar 13, 2021 1:55 pm
by daniel
Can you maybe share the point cloud with me? (admin [at] cloudcompare.org)

Re: Calculate Gradient returning NaN

Posted: Mon Mar 15, 2021 8:54 am
by TechTeam
Of course. Just sent it to your email.

Thank you in advance for your help.

Re: Calculate Gradient returning NaN

Posted: Mon Mar 15, 2021 7:45 pm
by daniel
For the records: this was a glitch due to very small coordinates (~10e-5). I fixed this in the next 2.12.alpha release.