Scientific.Visualization.PyMOL.Cylinder

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

# Class Cylinder

    PyMOLObject --+
                  |
        ShapeObject --+
                      |
                     Cylinder

Cylinder

Instance Methods
__init__(self, point1, point2, radius, faces=`(`True`,` True`,` True`)`, **attr) |
cgoObjects(self, material) |
Inherited from `ShapeObject`: `__add__`, `getPymolObjects`, `use` Inherited from `PyMOLObject`: `__copy__`, `__getitem__`, `__setitem__`, `writeToFile`

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: PyMOLObject.__init__