I would say splines are not curves themselves, rather method to generate them(the generic sense), different spline could yield the same curve with different control points and weights so i was wrong comparing them to clothoids which are curves themselves.Khagan wrote: Thu Oct 26, 2023 5:50 am They may perhaps be 'splines' in some generic sense of the term, but they are certainly not Bezier curves or anything closely related to them (e.g. Catmull-Rom), which is what is normally meant by the term in the context of computer graphics (and the way it has been used in this thread). The latter are polynomial curves (typically cubic), while the Euler/clothoid spiral involves transcendental functions (specifically, Fresnel integrals).
I understand that Bezier curves or Catmull-Rom woulnd't yield the exact same curves as a clothoid too ,what you are saying, but i don't know of at least 2 points :
1) Is it possible using certain transcendantal weight maybe to create a spline (not cubic nor catmull-rom, maybe degree k or something, or with a special conditions on linear derivatives) that could be used to generate "exact" clothoids segments ? That seemed difficult to find on the internet, maybe i was lacking keywords, or i just don't understand and can't recognize when i find something.
2)Another source of interrogation was for real life railroad, maybe those are not "perfect" euler/clothoid, maybe because of their transcendental nature the real life means of making train railroad is only an approximation due to them being built by segments of finite lengh and limited curvature precision or something. Maybe the real life process to make rail tracks is based on the clothoid for idealised design, but when it comes to actually making it as a physical item it is only an approximation. I was wondering then if there was a method to approximate those based on spline. In such case no longer to try and generate an "exact" clothoid, but something that could be made arbitrarily precise with an increasing number of control point.
I think this second research was more successfull , i found this article https://www.researchgate.net/publicatio ... ta_Fitting
which i could understand the introduction at least and it refers to railtracks amongst other things

Given the amount of sources of the paper i assume this is a documented quite recent topic, and i read the balden sentence as a confirmation of your quote.Abstract
Euler spirals are a kind of fair curves that have linear curvatures in terms of arc length. However,
Euler spirals cannot be represented by polynomials exactly. In this paper, we propose an algorithm
for approximating a segment of Euler spiral which interpolates two specified points and two tangents
at the points by a B-spline curve. The approximating B-spline curve is obtained as the solution to a
differential equation which satisfies the boundary conditions. Similar to the exact interpolating Euler
spiral, the interpolating B-spline curve is also fair and has approximate linear curvature. Furthermore,
an algorithm for fitting data points by a sequence of smoothly connected fair B-spline curves is also
developed
Further in the article they mention other existing ways of approximating the spiral some using splines and later what's detailled in the article is a method of approximation using B-splines but that's difficult to understand for me.
It doesn't mean i can understand the presented strategy, but it's quite a recent paper, that would explain why there is no vulgarization of fancy youtube videos yet. I found the easier way to vizualize/begin understanding is to think about the curvature, and the rate at which it changes, meaning its derivative rather than the complicated method to generate them. Because seeing the differences in the derivative is accessible to me , whereas reading the formula with the polynomials i can't make sense of them without the plotting step, which i couldn't do without understanding the formula, which i couldn't do without seeing them plotted first ....Due to complicated transcendental function representation of Euler spirals, it is difficult or
expensive to compute with Euler spirals. In particular, for rendering purpose, Euler spirals are
often approximated by other discrete or continuous curves [9] [10]. In [2], a segment of Euler
spiral is approximated by a B´ezier curve using Taylor expansion but this approximation is limited
in the tangent angle interval [0, π/2]. When an Euler spiral is approximated by an s-power series
[11], it yields a polynomial form but the calculus of the coefficients is complicated. Euler spiral
can also be approximated by an arc spline [3], but the obtained curve is not curvature continuous.
B-spline curves and surfaces are widely used in CAD/CAM systems and they can be used as an
efficient tool for finding the solutions to differential equations [14]. This paper presents a strategy
for approximating Euler spirals which interpolate specified points and tangents by B-spline curves

The more i learn the more mysterious the potential exact shape of a curved rail becomes

edit : The looping in roller coasters are called "clothoid loop", this is the most accessible i found x) https://www.youtube.com/watch?v=3Kzl2suBE2w