2
$\begingroup$

How to plot a TNB frame at every point along a curve in Mathematica? That is,

enter image description here

$\endgroup$
6
$\begingroup$

Slightly modifying the first example in FrenetSerretSystem >> Neat Examples:

knot = KnotData["Trefoil", "SpaceCurve"];
basis = Last[FrenetSerretSystem[knot[t], t]] // Simplify;

{tangent, normal, binormal} = Map[Arrow[{knot[t], knot[t] + #}] &, basis];

Show[ParametricPlot3D[knot[s], {s, 0, 2 Pi}, PlotStyle -> Thick], 
 Graphics3D[Table[{Thick, Blue, tangent, Red, normal, Green, binormal}, {t, 
    Subdivide[0, 2 Pi, 50]}]], PlotRange -> 3]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.