back

by raphlinus·2y ago·view on hn ↗
No. Among other things, they'd have a higher degree of continuity if they were.

I personally find this a fascinating topic, so much so that I did a PhD on it. The most natural loss function to optimize for is minimizing bending energy, and there are solutions to that going back about 300 years. However, in practice that's unlikely to be what you want - the problem with it is that its scaling properties give an advantage to curves with a longer arclength even if they have more curvature variation. Intuitively, the smoothest curve through a set of co-circular points should be a circular arc, but that's not what you get from the minimum energy curve, at least unless you impose an additional arc length constraint.

The long story is of course much more complicated, but the short version is that the Euler spiral fixes these scaling issues and has some other really nice properties. If your problem is "what is the smoothest curve that goes through this sequence of points" then arguably the piecewise Euler spiral G2 continuous spline is the distinguished answer.

3 comments
Hi Raph! I'm the author of the blog post. I actually read your PhD thesis when I was working on this project and trying to wrap my head around splines. It was a huge help to me in understanding the landscape of the field and how to think about and compare different classes of splines. Just wanted to say thanks!
> then arguably the piecewise Euler spiral spline [...] is the answer

It is the easiest "not wrong" answer, as it doesn't for example work with points on a circle either, where the (not only "intuitive") solution would be a circle. An Euler spiral is the answer on how to ("easily") "sufficient smoothly" connect 2 points with a given radius of curvature (and therefore tangent) at both points, and no constraints between those two points.

This is a bit of a tangent but your expertise makes you the best person to ask, so I'll give it a try:

The OP talks about aesthetic curves, but most comments are about continuity and smoothness. Intuitively that makes sense. Do you happen to know if there is any serious research that looked into which 2D curve properties do people find aesthetically pleasing?

It's a good question. I touch on it a little in my thesis (mostly chapter 2). First, there is psychology literature from the 50's [1] that indicates that curvature minima and maxima are salient, so having superfluous curvature extrema makes a curve less aesthetically pleasing. Hobby splines suffer from this, if you arrange the control points in a zigzag to make a serpentine, it places curvature extrema just on either side of the control point.

Second, there's all the log-aesthetic stuff from Japan, [2] has links to a lot of papers. Honestly, I find their claims of aesthetic beauty to be fluffy, not backed up by hard empirical evidence. I did do a small amount of human evaluation research in [3], which suggests that the log-aesthetic curves are visually pleasing, but the math for their use in an interpolating spline (which is the subject of TFA) is less stable than Hobby splines, Euler spiral splines, or Minimum Energy Curves (all of which are fairly similar).

I think there's more that could be done here. Thanks for your question.

[1]: Fred Attneave. Some informational aspects of visual perception. Psychological Review, 61(3):183–193, 1954.

[2]: https://www.yoshida-lab.net/english/research-e/log-aesthetic...

[3]: https://levien.com/phd/LevienSequinCAD09_014.pdf