If you want the curvature, I have posted an alternative approach here: How to compute curvature of a boundary