MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Tube plot function in Mathematica???

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108588] Re: Tube plot function in Mathematica???
  • From: Jaebum Jung <jaebum at wolfram.com>
  • Date: Wed, 24 Mar 2010 04:43:41 -0500 (EST)

On 3/23/10 5:52 AM, NeuroPulse wrote:
> Greetings,
>
> New to Mathematica.  Can't seem to find a way to plot a line as a tube
> like this:
>
> http://facstaff.unca.edu/mcmcclur/java/LiveMathematica/trefoil.html
>
> Seems such an obvious function to have built in.  Is there one?
>
> If not, can someone point me to one I can use in Mathematica?
>
> Thanks
>
>    
Check graphics primitive Tube:

http://reference.wolfram.com/mathematica/ref/Tube.html

Here's example,

ParametricPlot3D[{Sin[3t],Sin[t]+2Sin[2t],Cos[t]-2Cos[2t]},{t,0,2 
Pi},PlotStyle->Directive[Opacity[0.7],CapForm[None],JoinForm["Miter"],Red],PlotRange->All,ColorFunction->Hue,Boxed->False,MaxRecursion->0,PlotPoints->100,Axes->None,Method->{"TubePoints"->30}]/.Line[pts_,rest___]:>Tube[pts,0.2,rest]

- Jaebum


  • Prev by Date: Re: "Quick and dirty" Solve[]
  • Next by Date: Re: Tube plot function in Mathematica???
  • Previous by thread: Re: Tube plot function in Mathematica???
  • Next by thread: Re: Tube plot function in Mathematica???