Color Mesh - Differenet results in Rhino 5 and Rhino 6

I am doing a friend a favour. He needs to color a mesh given certain curvature values.
Given the exact same definition, the exact same geometry, we get different results. The one coming from Rhino 6 is perfect. The one comming from Rhino 5 is total non-sense.
The issue is he only has Rhino 5 license.
I have tried everything that I could think of but with no solution to this issue.

Rhino 6

Rhino 5

@Petras1 I have used your curvature tool. The problem it seems that in Rhino 5 the tool gives wrong curvature values. Any chance for a fix or a version for Rhino 5?