Curvature lines on a Surface

Hello Everyone,

I am trying to get the Curvature line grid on a surface using GHpython. So in the script, I am finding one set of Principal Curvature lines using 2 Planes (formed using Normal Vector and Curvature vector at a point on surface) which bisects the surface. Then later I am diving the set of Principal Curvature lines into points and applying the same logic on the set of divison points. But I am getting weird results. it seems like the curvature is flipping its direction. It would be very kind if someone can have a look at the script and help me with the mistakes.

Principal Curvature Lines.gh (13.0 KB)

Thanking you
Anand Shah

Hi Anand,

Well, not flipping but rapidly changing. Inspect your surface with the _Curvature command and you’ll see. Note that on a sphere the minimum and maximum curvature is equal.
Jess