Package Scientific :: Package Visualization :: Module VRML :: Class Cylinder
[hide private]
[frames] | no frames]

Class Cylinder



  VRMLObject --+        
               |        
     ShapeObject --+    
                   |    
LinearOrientedObject --+
                       |
                      Cylinder

Cylinder

Instance Methods [hide private]
  __init__(self, point1, point2, radius, faces=(True, True, True), **attr)
  memoKey(self)
  writeSpecification(self, file)

Inherited from ShapeObject: __add__, use, writeToFile

Inherited from VRMLObject: __copy__, __getitem__, __setitem__


Class Variables [hide private]

Inherited from ShapeObject: attribute_names


Method Details [hide private]

__init__(self, point1, point2, radius, faces=(True, True, True), **attr)
(Constructor)

 
Parameters:
  • point1 (Scientific.Geometry.Vector) - first end point of the cylinder axis
  • point2 (Scientific.Geometry.Vector) - second end point of the cylinder axis
  • radius (positive number) - the cylinder radius
  • faces - a sequence of three boolean flags, corresponding to the cylinder hull and the two circular end pieces, specifying for each of these parts whether it is visible or not
  • attr - graphics attributes as keyword parameters
Overrides: LinearOrientedObject.__init__

memoKey(self)

 

writeSpecification(self, file)