Get distances between each point

Good day,

I’m looking for a way to get distances between each of the points as per my screenshot.
Do you know an easies way that can help me to do it?

Thanks.

hi ,
just get the length of the lines you have using “Length” node from Curve category, you will got the distances

Yes, I agree. But I have a list of the points, so how to filter it out? The output should also be list but with lengths between each points: 1-2, 2-3…etc.

you can use ShiftIndices node like this way

Edit:
notice that this way will measure the distance between last point to first point
so instead you can use "RestItems"node this will remove first element

2 Likes

hi @zalgirietis.minde

Hmmm they should have some identifier …

KR

Andreas

1 Like

It worked. Thank you for your help!

You’re one step ahead. This is the second thing I’m about to do.

OUT = zip(IN[0],IN[1])


@zalgirietis.minde

1 Like