Cylinder

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

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

DetailsDetails

  • 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[{spec1, spec2, ...}] represents a collection of cylinders of radius 1.
  • Cylinder[{spec1, spec2, ...}, r] represents a collection of cylinders of radius r.
  • Cylinder[{spec1, spec2, ...}, {r1, r2, ...}] represents a collection of cylinders with specifications and radii .
New in 6 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »