pyllar :: Cylinder :: Cylinder :: Class Cylinder
[hide private]
[frames] | no frames]

Class Cylinder

source code


The Cylinder class represents a cylinder in 3D space.

Instance Methods [hide private]
 
__init__(self, x=0, y=0, z=0, r=1, h=1, res=32)
Create an instance of the Cylinder class.
source code

Inherited from Plottable.Plottable: AddToAxes, GetBounds, SetColor, SetDirection, SetOpacity, SetScale, UpdatePos

Method Details [hide private]

__init__(self, x=0, y=0, z=0, r=1, h=1, res=32)
(Constructor)

source code 

Create an instance of the Cylinder class.

x, y, and z are the coordinates of the center of the cylinder. r and h are the radius and height of the cylinder, respectively. res is the number of polynomials in the angular dimansion.
Overrides: Plottable.Plottable.__init__