I’m looking for a way to produce the “best” polyline from a curve, **using a given number of points**. GH has a `Curve to Polyline`

component, but it determines the number of resulting points. I was able to come up with something using Galapagos by comparing the total lengths of the segments compared to the total curve length and it fits my naive expectation that the points should cluster near the areas of greatest curvature, but it takes quite a while, and I have a whole lot of curves. Here’s the Galapagos attempt:

best polyline.gh (9.1 KB)