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

Class Cone

source code


The Cone class represents a cone 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 Cone class.
source code
 
SetDirection(self, dir)
Set the direction vector (vector defining axis of the cone).
source code

Inherited from Plottable.Plottable: AddToAxes, GetBounds, SetColor, 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 Cone class.

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

SetDirection(self, dir)

source code 
Set the direction vector (vector defining axis of the cone).
Overrides: Plottable.Plottable.SetDirection