This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# Tube

 Tube represents a 3D tube around the line joining a sequence of points. Tuberepresents a tube of radius r. Tuberepresents a collection of tubes. Tuberepresents a tube around the specified 3D curve.
• The radius of the tube can be specified either in absolute coordinates, or as Scaled[s].
• If no explicit radius is specified, Tube uses a small scaled radius.
• Tube specifies a different tube radius at the position of each of the points .
• Tube gives a tube consisting of a sequence of straight segments. It is equivalent to Tube[Line[{pt1, ...}], ...].
• The following curve specifications can be used:
 Line[...] piecewise line segments BezierCurve[...] composite Bezier curve BSplineCurve[...] B-spline curve
• By default, the joins between tube segments are rounded.
• Different forms of joining between tube segments can be specified using JoinForm.
• By default, the ends of the tube are rounded.
• Different caps for the tube can be specified using CapForm.
• CapForm[None] specifies that the end of the tube should be left open.
• Colors and other material properties of tubes can be specified using color directives as well as Specularity and Glow.
• Tubes can be specified as transparent using Opacity directives.
• Individual coordinates and lists of coordinates in tubes can be Dynamic objects.
A tube primitive:
A tube along a curve:
Differently styled tubes:
A tube primitive:
 Out[1]=

A tube along a curve:
 Out[1]=

 Out[1]=

Differently styled tubes:
 Out[2]=
 Scope   (16)
Single tube segment:
Multiple connected tube segments:
Multiple disconnected tube segments:
Radii can also be specified at vertices:
Tube can take a line or curve argument:
Colored tubes:
Different properties can be specified for the front and back faces using FaceForm:
Tubes with different specular exponents:
White tube that glows red:
Opacity specifies the face opacity:
Tube caps can be specified using CapForm:
Joining of tube segments can be specified using JoinForm:
Colors can be specified at vertices using VertexColors:
Use Scaled coordinates:
 Options   (1)
Use VertexColors to vary the colors along the tube:
 Applications   (4)
PieChart3D uses Tube to produce donut charts:
Plot a parametric space curve and replace the curve with a tube:
Tube can be used with Arrow for full 3D arrows:
A random 3D walk:
Use Tube for 3D edges in GraphPlot3D:
Obtain directed edges using Arrow:
Use Scale to get an elliptical tube:
Use Arrow with Tube to get a full 3D arrow:
Cone is a special case of Tube:
Get a truncated cone by specifying different radii in Tube:
Cylinder is a special case of Tube:
Get curved cylinder by using additional points:
A parametric specification of a tube generated using ParametricPlot3D:
An implicit specification of a tube generated by ContourPlot3D:
Tube objects can only use machine-number coordinates:
A random collection of tube curves:
Tubes with interpolated colors: