Package Scientific :: Package Visualization :: Module VRML2 :: Class Cylinder
[frames] | no frames]

Class Cylinder

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

Cylinder

Instance Methods
 
__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

Inherited from ShapeObject: attribute_names

Method Details

__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: VRMLObject.__init__