Found and fixed bug in Planar.slicePolyline