Curvature GN issue - how to correctly transfer float field from Point cloud to Mesh?

Hi, Id like to ask how to correctly transfer float field from point cloud to mesh vertices.
I want to transfer float attributes/field from this point cloud, with this float attributes distribution.

To this mesh, where vertices of the mesh have the same count/position as point cloud. If I use Sample nearest/Sample index, it outputs this mess.

Do you have an idea what went wrong and how to fix?
Here is a link to the blend file.

GN_curvature.blend (3.5 MB)

It is my attempt to create Mean / Gaussian / Min. Rad. / Max. Rad. curvature shader. After (if) finishing it will be aviable here as a free asset (plus part of paid addon)

link to stackexchange question.

You need to Sample Nearest from the source geometry (points) just like with Sample Index.

5 Likes

:scream:
This was source of so many frustrations on so many projects!
Such rookie mistake!
Thank you!