3
$\begingroup$

I am creating a Mesh Line, and calculate the distance between point x and point x-1 to store it as a named attribute. Based on that distance I want to calculate the length of the line at that point. In the first screenshot I calculated and added the length attribute by hand.

enter image description here

The only solution I found to calculate the length is by using a Repeat Zone, but iterating over the 10 points seems to be a little laborious to me.

enter image description here

Is there a better way to archive what I want? Thank you in advance!

$\endgroup$
2
  • $\begingroup$ Pretty sure you wanna use an Accumulate Field node $\endgroup$
    – Jakemoyo
    Commented Sep 10 at 20:04
  • $\begingroup$ Convert to curve, capture lengths and convert back to mesh? $\endgroup$
    – quellenform
    Commented Sep 10 at 20:33

1 Answer 1

5
$\begingroup$

(Using Blender 4.2.1)

For a chain of edges, a Shortest Edge Paths node should be enough :

GN Graph

$\endgroup$
1
  • $\begingroup$ Ok that is pretty easy. Thank you. $\endgroup$ Commented Sep 11 at 6:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .