In their answers to
The respondents showed how to envelop space curves with a net-like structure. I used kglr's answer to create the following function:
Envelopment[fn_, pr_, le_, tr_, me_] :=
Show[
ParametricPlot3D[fn[pr Pi t], {t, 0, 1},
Axes -> False,
Background -> Black,
Boxed -> False,
ImageSize -> Large,
Lighting -> "ThreePoint",
PlotRange -> All,
PlotStyle -> Directive[{MaterialShading[{"Glazed", Red}], Tube[tr]}]],
ParametricPlot3D[
v fn[pr Pi t] + (1 - v) fn[pr Pi (t + le)], {t, 0, 1}, {v, 0, 1},
BoundaryStyle -> Directive[White, Thin],
Mesh -> {me},
MeshFunctions -> {#4&},
MeshStyle -> Directive[White, Thin],
PlotStyle -> FaceForm[]],
SphericalRegion -> True]
We use KnotData to create an anonymous function:
knot = KnotData[{3, 1}, "SpaceCurve"]
{Sin[#1] + 2 Sin[2 #1], Cos[#1] - 2 Cos[2 #1], -Sin[3 #1]} &
Envelopment[knot, 4, 0.06, 0.05, 300]
For testing purposes, I included two more curves.
noeud = {2 Cos[#] - 2 Cos[3 #], 2 Sin[#] + 2 Sin[3 #], Sin[4 #]} &;
Envelopment[noeud, 4, 0.05, 0.08, 250]
conical = {# Cos[3 #] - 1, # Sin[3 #], #} &;
Envelopment[conical, 3, 0.06, 0.2, 300]
My question
I want to replace the mesh lines with a semi-transparent coloured band following the curve path. Approximately like in this image, which I found by chance on the internet:
How can we achieve this - optionally with or without the tube?









