Polylines from Vectors

Hi guys, I’m having trouble creating Polylines from a field of vectors.
I have a List of vectors, points and cells. They are all in the same order.
My idea is to start a polyline from the startpoint and if the line gets into another cell it’s going to change it’s direction according to the cells coresponding vector… and so on. until the line hits the edge of the field or crosses another line that was created.
I’m relatively new to python in Grasshopper, but my idea was to retrieve the index of the cell, that was intersected an take that index for the vector. Problem the line always hits the border of the cell with the same index first. So I need to skip that index. Is there some way in doing that. Or is there way easier approach of getting the same result.

1 Like