improved second method of computing spline sections
Refactor interface