Package esys :: Package lsm :: Package vis :: Package povray :: Module capsule :: Class Capsule
[hide private]
[frames] | no frames]

Class Capsule

                  object --+    
                           |    
        core.capsule.Capsule --+
                               |
              object --+       |
                       |       |
core.modifier.Modifiable --+   |
                           |   |
         modifier.Modifiable --+
                               |
                              Capsule

Objects of this class represent capsules, a capsule capped with a hemisphere at each end.

Instance Methods [hide private]
 
__init__(self, radius, endPt1=None, endPt2=None, segEndPt1=None, segEndPt2=None)
Initialises capsule with center-end-point coordinates and radius.
 
writeSdl(self, f)

Inherited from core.capsule.Capsule: getCenter, getLength, getRadius, getSegmentDirection, getSegmentEndPt1, getSegmentEndPt2, getSegmentLength

Inherited from modifier.Modifiable: apply, applySingle

Inherited from core.modifier.Modifiable: applySequence, getModifierList

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, radius, endPt1=None, endPt2=None, segEndPt1=None, segEndPt2=None)
(Constructor)

 

Initialises capsule with center-end-point coordinates and radius.

Parameters:
  • radius (float) - Radius of capsule.
  • endPt1 (sequence of 3 floats) - Coordinate of one end ("apex" of hemisphere).
  • endPt2 (sequence of 3 floats) - Center coordinate of other end ("apex" of hemisphere).
  • segEndPt1 (sequence of 3 floats) - Coordinate of one end ("apex" of hemisphere).
  • segEndPt2 (sequence of 3 floats) - Center coordinate of other end ("apex" of hemisphere).
Overrides: object.__init__

writeSdl(self, f)

 
Overrides: modifier.Modifiable.writeSdl