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.
Details and Options
- 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.
Examples
open allclose allBasic Examples (4)
Scope (23)
Graphics (13)
Specification (5)
Styling (5)
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:
Black cylinder that glows red:
Opacity specifies the face opacity:
Regions (10)
Embedding dimension is the dimension of the space in which the cylinder lives:
Geometric dimension is the dimension of the shape itself:
Get conditions for membership:
The equidistance contours for a cylinder:
Nearest points to an enclosing sphere:
Integrate over a cylinder region:
Applications (6)
Find the minimum surface area for a cylinder with volume :
Compare with some other cylinders of the same volume:
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:
Properties & Relations (5)
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:
ImplicitRegion can represent any Cylinder region:
Text
Wolfram Research (2007), Cylinder, Wolfram Language function, https://reference.wolfram.com/language/ref/Cylinder.html (updated 2014).
CMS
Wolfram Language. 2007. "Cylinder." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Cylinder.html.
APA
Wolfram Language. (2007). Cylinder. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Cylinder.html