Can anyone think of a good algorithm for “unrolling” or nearly “straightening” a wiggly route line so that it could fit in one long narrow straight strip?
It still needs to retain illustrative turns and kinks to help with wayfinding.
Maybe if we cheat with the straight segments to make up for the error?
The idea is that visually a straight road or a road bending with a very large radius are almost impossible to distinguish. Whereas visually a 90 degree left turn is very different from a 10 degree left turn.
For example if you have a simple route plan with 10 mile straight followed by a 90 degree left turn and 10 mile straight again. You could instead draw a 10 mile long circle segment which turns the straight bit slightly to the right side of your strip, then draw an 80 deg turn to the left followed by an other circle segment which bends the route back towards straight.
If you are happy with that solution visually then the algorithm which can generate it for you could be an optimisation with two terms, one which penalises deviations in curvature (penalising more heavily where the original curvature was tight), and an other which penalises the route wiggling too far in either direction away from the centre of the paper strip.
Still not sure how one could handle cases where the route turns 180 or close to it though.
We need a little UVB everyday to maintain melanin (skin pigment) and skin thickness. If you work inside M-F and then go hard on the weekends outdoors, you will receive disproportionate damage from sunlight.
Tell that to the engineers of the Millennium Bridge in London. Resonance from foot traffic caused it to start swaying, requiring shoring up with massive dampers.
No matter the traffic, a bridge should always be built to avoid resonance. Unstable dynamical systems do not care if it's a truck or a feather, they'll resonate and collapse.
Years ago the motoring media was very excited by the idea that electric cars could have a shared “skateboard” and then a coach-built body on top. Surely this DeLorean would be an excellent application of this - standard platform plus shiny bodywork and fancy doors! Why do they want to build a whole platform from scratch just to cash in on the nostalgia?
Can anyone think of a good algorithm for “unrolling” or nearly “straightening” a wiggly route line so that it could fit in one long narrow straight strip?
It still needs to retain illustrative turns and kinks to help with wayfinding.