Keep first straight line of shortest walk

unhandled

(Edward) #1

I want to keep the first straight line of the shortest walk path. How can I do that?

I shatterd the curve and than compare the vectors, but the component equality does not work with vectors

keep straight part 01.gh (17.2 KB)


(Tim Stark) #2

Discontinuity Component can give you the location for shatter.


(Edward) #3

O yes that one, thank you!


(Edward) #4

Besides that, do you know how to see if the vectors are equal of two lists?


(Tim Stark) #5

Same direction? Same length? What should be the output? You want the index or jsut true/false?
May this helps you a bit.

vector_compare.gh (17.0 KB)