2
$\begingroup$

I'm trying to get the total length of all edges of an object / fractal while in geometry nodes.

I looked at this Total length of a complex curve which works I also looked at this Total length of a complex curve with many points but I was wondering if geometry nodes has the same ability to show the total edge lengths?

img1

I tried using the curve length node but that number seems to be just for the original icosphere and not the other little icospheres attached to it.
it should be 182.95 but it says 31.54

img2

$\endgroup$

1 Answer 1

4
$\begingroup$

That's simply because you only have the original icosphere as a curve in your geometry, others are instances. Use a Realize Instances to convert them back to curves and Curve Length should work:

enter image description here

$\endgroup$
1
  • $\begingroup$ There's a better solution (especially for fractals, because they tend to be computationally expensive) given the assumption the scaling is scalar (equal on all 3 axes) - sum up the scale of all instances and multiply by the length calculated for just one instance; this way you don't realize instances. Not sure, but I think if the scaling differs on axes you can just calculate total distance per each axis? I would have to reason about this… $\endgroup$ Feb 25, 2023 at 10:51

You must log in to answer this question.

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