PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Objects
>
Tube
>
BUILT-IN MATHEMATICA SYMBOL
Cylinder
Line
BezierCurve
BSplineCurve
Cone
Arrow
See Also »
|
Graphics Objects
Summary of New Features in 7.0
Symbolic Graphics Language
New in 7.0: Alphabetical Listing
New in 7.0: Visualization & Graphics
More About »
Tube
Tube
represents a 3D tube around the line joining a sequence of points.
Tube
represents a tube of radius
r
.
Tube
represents a collection of tubes.
Tube
represents a tube around the specified 3D curve.
MORE INFORMATION
Tube
renders as a circular 3D tube in
Graphics3D
.
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
[{
pt
1
,
...
}],
...
]
.
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.
In
Tube
,
curve
can have head
BezierCurve
,
BSplineCurve
, or
Line
.
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.
EXAMPLES
CLOSE ALL
Basic Examples
(4)
A tube primitive:
A tube along a curve:
A tube with radius .1:
Differently styled tubes:
A tube primitive:
In[1]:=
Out[1]=
A tube along a curve:
In[1]:=
Out[1]=
A tube with radius .1:
In[1]:=
Out[1]=
Differently styled tubes:
In[1]:=
In[2]:=
Out[2]=
Scope
(16)
Single tube segment:
Multiple connected tube segments:
Multiple disconnected tube segments:
Tubes with different radii:
Radii can also be specified at vertices:
Tubes with scaled radii:
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
:
Properties & Relations
(6)
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
:
Possible Issues
(1)
Tube
objects can only use machine-number coordinates:
Neat Examples
(4)
A random collection of tube curves:
Tubes with interpolated colors:
Tube curves with interpolated radii:
Using random radii:
SEE ALSO
Cylinder
Line
BezierCurve
BSplineCurve
Cone
Arrow
MORE ABOUT
Graphics Objects
Summary of New Features in 7.0
Symbolic Graphics Language
New in 7.0: Alphabetical Listing
New in 7.0: Visualization & Graphics
New in 7 | Last modified in 8