This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Cylinder

Cylinder
represents a cylinder of radius r around the line from to .
Cylinder
represents a cylinder of radius 1.
  • 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 represents a collection of cylinders of radius .
  • Cylinder represents a collection of cylinders of radius r.
  • Cylinder represents a collection of cylinders with specifications and radii .
A unit radius and two units height cylinder:
A cylinder from the origin to with radius :
Differently styled cylinders:
A unit radius and two units height cylinder:
In[1]:=
Click for copyable input
Out[1]=
 
A cylinder from the origin to with radius :
In[1]:=
Click for copyable input
Out[1]=
 
Differently styled cylinders:
In[1]:=
Click for copyable input
Out[1]=
If no radius is specified, it is assumed to be 1:
Cylinders with different radii:
Cylinders with different directions:
Short form for a cylinder centered at the origin with a radius 1:
Use Scaled coordinates:
Use a scaled radius:
Multiple cylinders:
Color directives specify the face colors of cylinders:
FaceForm and EdgeForm can be used to specify the styles of the faces and edges:
Different properties can be specified for the front and back faces using FaceForm:
Cylinders with different specular exponents:
White cylinder that glows red:
Opacity specifies the face opacity:
Platonic polyhedra:
A simple 3D bar chart:
Use Cylinder to render edges in a GraphPlot3D:
Define a ChartElementFunction based on Cylinder:
BarChart3D uses Cylinder to produce 3D bar charts:
Histogram3D can similarly use Cylinder:
Use Cylinder to display bubbles in BubbleChart3D:
Use Scale to get elliptical cylinders:
A parametric specification of a cylinder shell generated using ParametricPlot3D:
An implicit specification of a cylinder shell generated by ContourPlot3D:
ChemicalData plots a molecule using spheres and cylinders:
Random unit cylinders:
Nested transparent cylinders:
New in 6 | Last modified in 7