2
$\begingroup$

Given a parametric curve $\{f_x[t], f_y[t]\}$, the parametric formulas for its parallel (two branches) with a positive offset $d$ is

$$ \left\{f_x[t] + \dfrac{df_y'[t]}{\sqrt{f_x'[t]^2 + f_y'[t]^2}},\, f_y[t] - \dfrac{d f_x'[t]}{\sqrt{f_x'[t]^2 + f_y'[t]^2}} \right\} $$

[Here is a picture showing an example of a parallel curve of a sine wave.]

parallel sine

Is it possible to find a curve parallel to a curve but without these loopy "cusp" things on top? It would look like the top curve in the picture, but with the parts cut off where it crosses itself.

  • 0
    What are $x$, $y$, and $f(t)$?2017-02-20
  • 0
    I can't be sure, but I *think* the notation $\{xf[t], yf[t]\}$ might be more familiar as $(x(t), y(t))$ (so that the $x$-component is given by $x(t)$, etc) or possibly using e.g. $f_x(t)$ if there's no risk of confusion with partial derivatives. At any rate, the OP seems to be looking for *examples* of such a parametric curve.2017-02-20
  • 0
    I made the edit under these assumptions (of course rollback if you find the notation less favorable, but do note that a previous edit *may* have done some funny things with the fractions). At any rate, it seems like varying $d$ can give curves without cusps (I tried for sine as well; $d = 0.5$ works). Can you be more precise about what you're interested in?2017-02-20

2 Answers 2

1

the sine curve is periodic. you can get rid of the cusps by using its period or by using max(a,b) or min(a,b) understand y=sin(x) as modulo where every other tile is mirrored.

//return p modulo s/2, but with every other tile mirror-reversed. s=period. float pModMirror1(in float p, float s){float h=s*.5; return (mod(p+h,s)-h)*(mod(floor((p+h)/s),2.)*2.-1.);}//from hg_sdf by mercury

0

The red curve ( that appears as a sine curve) has a wavelength/period, say $p$ and amplitude $A$. For cosine curve $ y= A \cos \dfrac{2 \pi x}{\lambda} $ we can find minimum radii of curvatures. Radius of curvature at crest or trough is found by differentiation using standard curvature formula to be:

$$ R= \dfrac{ \left( {\lambda/{2 \pi}} \right)^2}{ A} $$

The given green and purple curves are here drawn with $ d \approx \lambda/2 >R $.

If they had been drawn with $d

If they had been drawn exactly with $d= R $ one cusp only will appear. What forms in this case "touches" evolute normally by contact at the vertex center of curvature.

And when $d>R$ there would be two cusps with ever increasing domes and troughs of the parallel curves coverage with crests and troughs producing bigger arcs spanning between their bi-cusps.

Parallel Curve Wiki first figure illustrates it all, with single minimum it is less complicated. They are offset curves in Engineering parlance, and for 3-space they are known as Bertrand parallel Surfaces.