wbt_total_curvature function

Total curvature