First draft of polyline centroid