News for hackers. Stuff that matters.
Re:When Splines Were Physical Objects by Animats on Sunday November 27, 2022 @02:51AM (#33761250)
Railroad curves are usually splines. That was the original physical application. You need a curve that minimizes jerk as the radius changes.
Re:When Splines Were Physical Objects by mech765 on Sunday November 27, 2022 @05:09AM (#33761820)
Now I'm wondering how the steel tracks get bent- I figure it's done on site rather than at the factory. Dunno what sort of equipment they use to bend them though. Maybe they can just use bigger "spline weights" and pin the bend points to scale from the drawing! Hmmmmmmmmm probably not but I want it to be true
Re:When Splines Were Physical Objects by benj111 on Sunday November 27, 2022 @06:19AM (#33762174)
I would guess in a ring roller.

Basically a roller on top pressing down and 2 rollers on the bottom and you wind the metal through tightening the top roller to increase the curve.

Sorry to disappoint you.

If it makes you feel better though, the whales used to set the curves on boats used to be real whales.

Re:When Splines Were Physical Objects by jstanley on Sunday November 27, 2022 @07:15AM (#33762449)
But a ring roller produces curves of constant radius, and for the railway application it would have to be absolutely enormous.

From a quick DuckDuckGo search, it looks like they basically are just laid out the same way the "splines" from the article are: the curves are gentle enough that the steel is not very hard to bend.

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @08:19AM (#33762762)
Talking of ducks, some think that the spline weight 'ducks' could be the origin of the expression 'have your ducks in a row'.
Re:When Splines Were Physical Objects by twobitshifter on Sunday November 27, 2022 @08:52AM (#33762925)
Re:When Splines Were Physical Objects by danhor on Sunday November 27, 2022 @09:06AM (#33762996)
Railroad tracks are pretty flexible, there's no need to bend them separately, you just put them in the sleepers and can fine tune them in there.

You can see how much they bend in this video: https://www.youtube.com/watch?v=CpP6ar63Qxw (1:40). In this case they get delivered as 200m sections on normal rail cars, so they hava to withstand normal curves during transport.

Re:When Splines Were Physical Objects by agumonkey on Sunday November 27, 2022 @05:29AM (#33761914)
before ships ?
Re:When Splines Were Physical Objects by cpp_frog on Sunday November 27, 2022 @05:49AM (#33762013)
Interesting, do you have a source where I can get deeper into the application of splines to reilroads? Specifically, how to arrive at the jerk minimization problem. All things railroads are too descriptive with little engineering/physics formulas.
Re:When Splines Were Physical Objects by twobitshifter on Sunday November 27, 2022 @09:06AM (#33763001)
chapter 3.2 has a good explanation of it all. https://nap.nationalacademies.org/read/22800/chapter/3
Re:When Splines Were Physical Objects by s1mon on Sunday November 27, 2022 @12:41PM (#33764808)
There are tons of papers and research on this topic. Here's just one review of some of the various approaches that have been used.

https://www.researchgate.net/publication/341476435_Railway_T...

Re:When Splines Were Physical Objects by joshu on Sunday November 27, 2022 @12:32PM (#33764733)
i think - but am not sure - they use clothoid definitions to characterize jerk, as it is more restrictive regarding the maximum rate of turn change. you can make quite a sharp turn with a mathematical spline. but i can see how they would use the physical spline to solve this…

Googling “railroad spline clothoid” got some intriguing hits — and this HN comment. https://news.ycombinator.com/item?id=10446154

semi-relatedly, this is a fun watch. https://youtu.be/aVwxzDHniEw

even less relatedly, here is a drawing i did by torturing a clothoid optimizer https://www.instagram.com/p/CSe40DTp-WW/?igshid=YmMyMTA2M2Y=

Re:When Splines Were Physical Objects by samwillis on Sunday November 27, 2022 @03:22AM (#33761380)
See also French curves: https://en.m.wikipedia.org/wiki/French_curve

And, more like that in the post, the "flexible curve ruler": https://www.ryman.co.uk/helix-flexi-curve-ruler

I used both during my Industrial Design degree in the mid 00s, but never in practice after. I suspect some people still do though.

Re:When Splines Were Physical Objects by chadcmulligan on Sunday November 27, 2022 @08:10AM (#33762719)
My dad used to have a set of French curves - he was a sign writer and used them for cutting the templates for silk screen printing, probably in the 60's or there abouts.
Re:When Splines Were Physical Objects by Someone on Sunday November 27, 2022 @10:06AM (#33763385)
That “flexible curve ruler” seems to be called a Lesbian rule (after the island; https://en.wikipedia.org/wiki/Lesbian_rule), and can also be used to measure curve length (bend the rule so that is matches the curve to be measured, mark begin and end of the to-be measured length, straighten the rule, and use a straight ruler to measure the length between the marked points)
Re:When Splines Were Physical Objects by quickthrower2 on Sunday November 27, 2022 @03:27AM (#33761404)
He didn’t answer the question the first come to my mind: Is the curve from the physical spline a bezier?
Re:When Splines Were Physical Objects by samwillis on Sunday November 27, 2022 @03:29AM (#33761416)
You should be able to describe (within any reasonable tolerance) the same curve with a bezier, however the control points will obviously be different.

Any imperfections in the physical spline, say a knot of it's wooden, would translate to a slight curvature difference.

Re:When Splines Were Physical Objects by quickthrower2 on Sunday November 27, 2022 @04:41AM (#33761694)
Sounds like the physical curves are a subset of bezier? So there might be some bezier curves that cannot be replicated physically
Re:When Splines Were Physical Objects by samwillis on Sunday November 27, 2022 @04:47AM (#33761722)
Not really, you can just add more and more control points to a Bézier and it will be possible to describe a curve to a greater accuracy.

However, in reality when using Bézier curves you want to really want to use the minimum number of control point neccesery to ensure a nice smooth curve.

Re:When Splines Were Physical Objects by quickthrower2 on Sunday November 27, 2022 @05:18AM (#33761859)
I mean vice versa. Can the physical thing do any CAD Bezier?
Re:When Splines Were Physical Objects by hamburglar on Sunday November 27, 2022 @06:41AM (#33762270)
A Bézier curve can have a cusp, which you can’t do with a physical spine.
Re:When Splines Were Physical Objects by Gordonjcp on Sunday November 27, 2022 @06:15AM (#33762156)
> Not really, you can just add more and more control points to a Bézier and it will be possible to describe a curve to a greater accuracy.

The more control points you add to your curve the more computationally expensive it becomes, though.

This is just the law of spline demand.

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @07:58AM (#33762669)
Excellently integrated pun!
Re:When Splines Were Physical Objects by mech765 on Sunday November 27, 2022 @05:19AM (#33761862)
IIRC, generally speaking a beam with a transverse point load (think like a diver on the tip of a diving board) deforms into a parabolic curve, and beams with more point loads end up taking higher order polynomial curves. Engineering beam math usually much assumes that the beam is acting under small deflections though.

I don't remember as much about beziers but I think they are also often essentially a series of cubic curves. There are a couple of different types of splines- one of them is controlled locally only by it's local control points (I think that one's beziers) and one requires all control points to control the whole curve.

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @07:44AM (#33762591)
That's incorrect. That curve is Bernoulli's elastica, which is different from a parabola (though for small deformations they can be a reasonably close approximation).
Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @08:00AM (#33762679)
There is a neat connection between a rolling hyperbola and an elastica though: https://twitter.com/KangarooPhysics/status/14337538508177858...
Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @07:40AM (#33762567)
No - it's an elastica, which cannot be represented exactly as a bezier. Raph Levien's thesis is a great read on this https://www.levien.com/phd/thesis.pdf
Re:When Splines Were Physical Objects by bitwize on Sunday November 27, 2022 @04:15AM (#33761599)
So if you put a few of these together in a lattice, would you be reticulating splines?
Re:When Splines Were Physical Objects by VortexSpin on Sunday November 27, 2022 @07:55AM (#33762651)
I was looking for this reference.
Re:When Splines Were Physical Objects by Kwantuum on Sunday November 27, 2022 @04:28AM (#33761647)
Website is completely broken in firefox when javascript is enabled.
Re:When Splines Were Physical Objects by alacritas0 on Sunday November 27, 2022 @05:08AM (#33761816)
no it isn't. Running 107.0 here and it looks fine
Re:When Splines Were Physical Objects by xg15 on Sunday November 27, 2022 @05:18AM (#33761857)
Broken in Firefox for Android 107.1 as well.
Re:When Splines Were Physical Objects by fhd2 on Sunday November 27, 2022 @06:16AM (#33762163)
Does seem a bit odd at second glance, seems like hitting the back button undos scrolling instead of navigating back to HN, depending on how much I scrolled. Maybe it's a feature though. Firefox for Android 107.1.0 with uBO.
Re:When Splines Were Physical Objects by pimlottc on Sunday November 27, 2022 @08:49AM (#33762916)
Fine here. Firefox 107.0 w/ uBlock Origin
Re:When Splines Were Physical Objects by crossingTime on Sunday November 27, 2022 @09:29AM (#33763140)
In Brave I see "Enter a caption (optional)" on every picture. <span class="caption public_hide" contenteditable="false" id="78a560_1776">Enter a caption (optional)</span>.
Re:When Splines Were Physical Objects by jeffrallen on Sunday November 27, 2022 @04:59AM (#33761779)
They still are in wooden boat building. See Sampson Boat Company on YouTube from a few years ago.
Re:When Splines Were Physical Objects by jabl on Sunday November 27, 2022 @05:52AM (#33762035)
Came here to say exactly that. In particular, the episodes that deal with lofting (24 & 25): https://www.youtube.com/watch?v=oKJagvumvCI&list=PLB00JHoTw1...
Re:When Splines Were Physical Objects by pimlottc on Sunday November 27, 2022 @09:06AM (#33762997)
Intriguing videos! There's a good section of him laying down splines at 10:58 in episode 25:

https://youtu.be/gfuPTLSBQfY?t=658

Re:When Splines Were Physical Objects by selimthegrim on Sunday November 27, 2022 @10:58AM (#33763782)
Is this where they would be used with mitres?
Re:When Splines Were Physical Objects by blacklion on Sunday November 27, 2022 @05:22AM (#33761879)
Now bronze spline weights go $66, not $50. +8% in 6 years.
Re:When Splines Were Physical Objects by AnOnymouse2200 on Sunday November 27, 2022 @07:41AM (#33762572)
It's +32%
Re:When Splines Were Physical Objects by blacklion on Monday November 28, 2022 @03:32AM (#33771124)
Ooops, divide instead of multiply :-(
Re:When Splines Were Physical Objects by sitkack on Sunday November 27, 2022 @03:41PM (#33766691)
Aside, there is no reason for them to be bronze, they look nice, but you could 3d print them and fill them, cast out of ceramic in plaster mold, make them from plaster, etc.

If I were going to do a one-off set, I'd 3d print them and fill with sand.

Re:When Splines Were Physical Objects by ChrisMarshallNY on Sunday November 27, 2022 @05:37AM (#33761955)
My father used to have these curves that were segmented rulers. You could bend them, and they would retain the shape.

He also had a couple of slide rules.

Re:When Splines Were Physical Objects by nonrandomstring on Sunday November 27, 2022 @08:05AM (#33762699)
I have a certain nerdy penchant for the "stationary" objects we used to pack in our school bags; slide rules, protractors, set squares, compasses, stencils sets for things like chemistry and flow charts, hard pencils and sharpeners. They still feel like instruments of ritual and magic.
Re:When Splines Were Physical Objects by lonk on Sunday November 27, 2022 @08:41AM (#33762859)
Is it possible to reticulate physical splines?
Re:When Splines Were Physical Objects by drewolbrich on Sunday November 27, 2022 @11:52AM (#33764322)
Yes, but this requires specialized equipment and a licensed technician.
Re:When Splines Were Physical Objects by nraynaud on Sunday November 27, 2022 @08:56AM (#33762945)
My uncle used to work at a tool maker shop for the stamping industry in the 70’s. For the round molds for the wheel wells, they did grind the piece of steel by hand, and the curves were checked by a soft bending ruler.
Re:When Splines Were Physical Objects by crazygringo on Sunday November 27, 2022 @09:27AM (#33763130)
I'm so curious but the article doesn't mention: how were these splines "defined"? In other words, if you have to reproduce your work for a new draft, how do you make sure you draw the exact same curve? (Without tracing the prior draft.)

Are there "control points" like Bézier curves have? Do those have anything to do with the placement of the whales? Or was this all just done "by eye" so that these splines assisted in drawing a perfectly smooth curve, but the result was just trial-and-error to find a curve that looks good?

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @09:42AM (#33763232)
An interesting question, since you could record the positions of the whales, but that alone doesn't fully determine the curve. I guess you'd have to also record the distances along the spline between those pinned points.
Re:When Splines Were Physical Objects by Someone on Sunday November 27, 2022 @09:58AM (#33763336)
I think the pins aren’t ‘pinning’ specific points on the wood strips to specific locations, but just prevent the strip of wood from becoming a straight-lined strip of wood. The tendency of the strip of wood to straighten itself would provide enough force to make the wood slide along the pins to find the minimum energy solution.

(Edit: https://en.wikipedia.org/wiki/Flat_spline seems to confirm that)

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @10:10AM (#33763402)
Both types are used - pinning and sliding. See figure 3.19 in https://www.levien.com/phd/thesis.pdf
Re:When Splines Were Physical Objects by bee_rider on Sunday November 27, 2022 @10:58AM (#33763785)
Is it a requirement, to be able to copy a design without tracing? Blueprints seem to have been the main way of storing designs for quite a while. Maybe the drawings are just as good as it gets until you have computers that really want numbers.

Think about buying a ship for example — I guess the person buying it would just specify a type of hull (or for high end stuff, go to a shipwright they specializes in a type of hull), and a couple dimensions.

As to actually doing the design, must be their experience plus conventions built on outcomes from the field — this part of the hull has to be convex, etc etc. So, trial an error, but built up over generations.

Re:When Splines Were Physical Objects by gregschlom on Sunday November 27, 2022 @11:28AM (#33764114)
My dad was a naval architect, so I can answer that one. Drawing was done on translucent paper (tracing paper). If you had to copy another drawing, you could just slide it under your current drawing and position a spline to match the line.

Once the drawing was done, it was brought to a copy shop that used a special machine to copy it to a paper that turned blue when exposed to light (hence the term blueprint - https://en.m.wikipedia.org/wiki/Blueprint).

The original drawing on tracing paper was then carefully archived, and more blueprints could be made out of it as needed.

Re:When Splines Were Physical Objects by kakkun on Sunday November 27, 2022 @01:51PM (#33765451)
I guess measure where the whales are, and hope that the flexibility of the thing you're using to re-create the line is close enough to what was used when the curve was initially created.

The order's different (the curve defining the points, as opposed to points defining the curve), but it might look like what Apple provides in their CAD files for accessory makers. Take a look at p. 362 for an example: https://developer.apple.com/accessories/Accessory-Design-Gui...

Re:When Splines Were Physical Objects by Jarmsy on Sunday November 27, 2022 @04:53PM (#33767381)
An elastica curve doesn't depend on the stiffness of the material - as long as it is linearly elastic.
Re:When Splines Were Physical Objects by sourdoughness on Tuesday November 29, 2022 @06:47AM (#33786357)
Boat builders do talk about “fair battens”, where batten = spline, and “fair” refers to being linearly elastic. Boat building battens can be really long, so fairness is not guaranteed. Long battens are scarfed together out of pieces cut from the same timber plank to try to maximise uniformity.
Re:When Splines Were Physical Objects by twobitshifter on Sunday November 27, 2022 @10:56AM (#33763765)
It seems that the software interaction is not as nice as in the real world. I often end up fussing with the spline tools in programs to get what I want but this looks much more straigtforward.
Re:When Splines Were Physical Objects by gregschlom on Sunday November 27, 2022 @11:55AM (#33764351)
I loved playing with those weights as a kid. Their funny shape and hefty weight made them into interesting characters. The spline themselves were definitely off limits to my little hands, though.

One thing the article doesn't mention is that splines were also made out of clear plastic, not just wood. This made them more bendable and durable, I believe, and it was nice to be able to see through them when positionning them.

Re:When Splines Were Physical Objects by raphlinus on Sunday November 27, 2022 @12:52PM (#33764910)
I have some stuff on real splines (their similarity and difference from the mathematical idealization) in section 3.12 of my thesis (page 39 of https://www.levien.com/phd/thesis.pdf).

There's also a bunch of stuff in there about Euler spirals (aka clothoids), including application to railways - see section 6.6, page 106. Fun fact, I'm going to get my first tattoo soon, and it will be an Euler spiral.