Suppose I have a three-dimensional object (such as a cylinder, or some finite parametric surface). Is there any easy way to draw tubes with given radius around the edges of the object (i.e., tubes which have the edges as guiding curves)?
1 Answer
$\begingroup$ $\endgroup$
1 This isn't clever at all, basically because it doesn't "detect" the edges on its own, but I don't know of anything better:
f[u_, v_] := {Cos[u], Sin[u], v}; Show[ ParametricPlot3D[f[u, v], {u, 0, 2 Pi}, {v, 0, 1}, Mesh -> None, Boxed -> False, Axes -> False, PlotRangePadding -> .2], ParametricPlot3D[f[u, 1], {u, 0, 2 Pi}, Mesh -> None, Boxed -> False, Axes -> False] /. Line[x_] :> Tube[x, .08] ] 
- $\begingroup$ Pretty neat though. I could work with that. Thanks! $\endgroup$Kim Fierens– Kim Fierens2014-11-29 03:02:25 +00:00Commented Nov 29, 2014 at 3:02
ParametricPlot3D[{Cos[u], Sin[u], 2 v}, {u, 0, 2 Pi}, {v, 0, 1}, Mesh -> None, BoundaryStyle -> Black, PlotStyle -> FaceForm[Transparent], Boxed -> False]$\endgroup$