I'm having an issue plotting torus links in Mathematica. What I'm trying to generate is a (2,8) torus link like the one in the picture in Wikipedia:
using equations such as those outlined here.
However, I appear to only get half of the respective torus link.
a = 1; d = 4; p = 2; q = 8;
ParametricPlot3D[{(a*Sin[q*t] + d)*Sin[p*t], (a*Sin[q*t] + d)*
Cos[p*t], a*Cos[q*t]}, {t, 0, 2*Pi}, PlotStyle -> Orange,
PlotRange -> All] /. Line[pts_, rest___] :> Tube[pts, 0.2, rest]
(a
and d
are parameters that control the width of the tube and the distance of the curve from the origin respectively, outlined here.)
Can anyone explain why I am only seeing half of the link?