Turn off some annoying messages:
![[Graphics:../Images/index_gr_2.gif]](../Images/index_gr_2.gif)
A silly parameterized curve:
![[Graphics:../Images/index_gr_3.gif]](../Images/index_gr_3.gif)
![[Graphics:../Images/index_gr_4.gif]](../Images/index_gr_4.gif)
I want to widen the path. I suppose I could use thicker lines...
![[Graphics:../Images/index_gr_7.gif]](../Images/index_gr_7.gif)
... but that' not so great --- look at the bumps where the curvature is highest. The graph consists of a union of fat line segments, so we could simply increase the number of segments. But what if I want to do something more exotic, like have different colored lines running along the edges of this new "road"?
I'll use tangents and normals to find "parallel paths" at a given distance, neglecting the questions of differentiabilty:
I could use a function for making unit vectors...
![[Graphics:../Images/index_gr_10.gif]](../Images/index_gr_10.gif)
and a function for making tangent vectors, and normals vectors. (I'll use the "trick" for making normals from tangents.)
![[Graphics:../Images/index_gr_11.gif]](../Images/index_gr_11.gif)
After that it's easy to make a parallel path.
![[Graphics:../Images/index_gr_12.gif]](../Images/index_gr_12.gif)
![[Graphics:../Images/index_gr_13.gif]](../Images/index_gr_13.gif)
![[Graphics:../Images/index_gr_14.gif]](../Images/index_gr_14.gif)
Ah, that's what I wanted. (The original curve is the black one in the middle.)
Here's the same path, but with the normals shown.