Calculate Gradient returning NaN

Feel free to ask any question here
Post Reply
TechTeam
Posts: 2
Joined: Fri Mar 12, 2021 2:23 pm

Calculate Gradient returning NaN

Post 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.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Calculate Gradient returning NaN

Post by daniel »

Can you maybe share the point cloud with me? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
TechTeam
Posts: 2
Joined: Fri Mar 12, 2021 2:23 pm

Re: Calculate Gradient returning NaN

Post by TechTeam »

Of course. Just sent it to your email.

Thank you in advance for your help.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Calculate Gradient returning NaN

Post 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.
Daniel, CloudCompare admin
Post Reply