cut_lines_at_distance function

Cut lines at a specified distance