# Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# Cylinder

Cylinder[{{x1,y1,z1},{x2,y2,z2}},r]
represents a cylinder of radius r around the line from (x1,y1,z1) to (x2,y2,z2).

Cylinder[{{x1,y1,z1},{x2,y2,z2}}]
represents a cylinder of radius 1.

## DetailsDetails

• Cylinder can be used as a geometric region and a graphics primitive.
• Cylinder[] is equivalent to Cylinder[{{0,0,-1},{0,0,1}}]. »
• Cylinder represents a filled cylinder region where and the vectors are orthogonal with , and and .
• Cylinder can be used in Graphics3D.
• In graphics, the points pi and radii r can be Scaled and Dynamic expressions.
• Graphics rendering is affected by directives such as EdgeForm, FaceForm, Specularity, Opacity, and color.
• Cylinder[{spec1,spec2,},{r1,r2,}] represents a collection of cylinders with specifications speci and radii ri.

## ExamplesExamplesopen allclose all

### Basic Examples  (4)Basic Examples  (4)

A unit radius and two units height cylinder:

 In[1]:=
 Out[1]=

A cylinder from the origin to {1,1,1} with radius 1/2:

 In[1]:=
 Out[1]=

Differently styled cylinders:

 In[1]:=
 Out[1]=

Volume and centroid:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=