Straighten curve with geometry nodes

I’m trying to straighten any kind of curve via geometry nodes. I have 2 options for this one -

  1. The easier option: create a new curve but straight, with the same length, and also the same number of points. for some reason capturing the point count and resampling based on that didn’t work for me. (see below)
  2. The bonus option would be not only to get the same point counts, but the same segment lengths as well for the new curve.

Any ideas?

resamplecurve

1 Like

Awesome, thanks so much. Never used the domain size node, need to read up on what that does.

Domain is just a funny name for sub object types. Points is a domain, faces is a domain and edges as well. But also more complex constructs like instances is a domain.

The domain size node just tells you how many of these type are in the domain. So in this case the nodes returns the number of points on a curve.

1 Like

Thanks for the explanation! Yes, terminology is sure something to get used to with geo nodes :slight_smile: The had me with fields for quite some time, until I got that backwards evaluation thing.