I'm trying to draw on the computer a curve that keeps always the same distance(given as parameter) from a given curve. I know the formula for the given curve. I tried moving perpendicular to the first derivative but in some cases when the curve is sharp there are a lot of points creating some problems. This problem happens when the moving the curve with a distance greater that the radius of the curve.
Is there a simple/standard way of drawing this kind of drawing?
To be more precise I'm using these formulas when obtaining the above result. It works fine as long as the curve has no "sharp turns". This is the case that bothers me.