3D FingerPrint - need to extract ridges and valleys? Estimation Curvatures

Hello,
I need to extract ridges and valleys of a 3D fingerprint. The output should be a ply file which shows exactly where are the ridges and valleys on 3d fingerprint using different colors.
Input file - ply file with just x,y,z locations.

I got it from a 3d scanner. Email me for the input file on nisha.m234@gmail.com.

Algorithm:
I am trying to find principal curvatures for extracting the ridges and valleys.
( http://www.global-edge.titech.ac.jp/faculty/hamid/courses/shapeAnalysis/files/2.BasicNotions.pdf
page 42. You can read from page 30. I am trying to achieve something like that.)

Any updates ?? Anyone ??