Package Scientific :: Package Visualization :: Module VPython :: Class Cone
[hide private]
[frames] | no frames]

Class Cone



GraphicsObject --+    
                 |    
       ShapeObject --+
                     |
                    Cone

Cone

Instance Methods [hide private]
  __init__(self, point1, point2, radius, face=1, **attr)
  show(self, window)

Inherited from ShapeObject: __add__, display

Inherited from GraphicsObject: __copy__, __getitem__, __setitem__


Class Variables [hide private]
  attribute_names = ['comment', 'material', 'face']

Method Details [hide private]

__init__(self, point1, point2, radius, face=1, **attr)
(Constructor)

 
Parameters:
  • point1 (Scientific.Geometry.Vector) - the tip of the cone
  • point2 (Scientific.Geometry.Vector) - end point of the cone axis
  • radius (positive number) - the radius at the base
  • face (bool) - a boolean flag, specifying if the circular bottom is visible
  • attr - graphics attributes as keyword parameters
Overrides: GraphicsObject.__init__

show(self, window)

 

Class Variable Details [hide private]

attribute_names

Value:
['comment', 'material', 'face']