PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Objects
>
Built-in
Mathematica
Symbol
Three-Dimensional Graphics Primitives
Tutorials »
|
Tube
Cone
Circle
Sphere
GraphicsComplex
RevolutionPlot3D
See Also »
|
Graphics Objects
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
More About »
Cylinder
Cylinder
[{{
x
1
,
y
1
,
z
1
}, {
x
2
,
y
2
,
z
2
}},
r
]
represents a cylinder of radius
r
around the line from
(
x
1
,
y
1
,
z
1
)
to
(
x
2
,
y
2
,
z
2
)
.
Cylinder
[{{
x
1
,
y
1
,
z
1
}, {
x
2
,
y
2
,
z
2
}}]
represents a cylinder of radius 1.
MORE INFORMATION
Cylinder
renders as a cylinder in
Graphics3D
.
Cylinder
represents the whole filled cylinder, not just the surface.
The ends of the cylinder are disks.
The cylinder radius can be specified either in absolute coordinates, or as
Scaled
[
s
]
.
Colors and other material properties of cylinders can be specified using color directives as well as
Specularity
and
Glow
.
»
Cylinders can be specified as transparent using
Opacity
directives.
»
Cylinder
[]
is equivalent to
Cylinder
[{{0, 0, -1}, {0, 0, 1}}]
.
»
Cylinder
[{
spec
1
,
spec
2
,
...
}]
represents a collection of cylinders of radius
1
.
Cylinder
[{
spec
1
,
spec
2
,
...
},
r
]
represents a collection of cylinders of radius
r
.
Cylinder
[{
spec
1
,
spec
2
,
...
}, {
r
1
,
r
2
,
...
}]
represents a collection of cylinders with specifications
spec
i
and radii
r
i
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
A unit radius and unit height cylinder:
In[1]:=
Out[1]=
A cylinder from the origin to
{1, 1, 1}
with radius
1/2
:
In[2]:=
Out[2]=
Differently styled cylinders:
In[1]:=
Out[1]=
Scope
(12)
Applications
(5)
Properties & Relations
(4)
Neat Examples
(2)
SEE ALSO
Tube
Cone
Circle
Sphere
GraphicsComplex
RevolutionPlot3D
TUTORIALS
Three-Dimensional Graphics Primitives
MORE ABOUT
Graphics Objects
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
RELATED LINKS
Demonstrations with Cylinder
(
Wolfram Demonstrations Project
)
New in 6 | Last modified in 7