Package esys :: Package lsm :: Package vis :: Package core :: Module cone :: Class TruncatedCone
[hide private]
[frames] | no frames]

Class TruncatedCone

object --+
         |
        TruncatedCone
Known Subclasses:

Objects of this class represent truncated cones.

Instance Methods [hide private]
 
__init__(self, endPt1, endPt2, radius1, radius2=0)
Initialises cone with center-end-point coordinates and corresponding radii.
 
getEndPt1(self)
Returns the coordinate of the center coordinate of end 1.
 
getEndPt2(self)
Returns the coordinate of the center coordinate of end 2.
 
getCenter(self)
Returns the coordinate of the center of this cone.
float
getHeight(self)
Returns the height of this cone.
 
getRadius1(self)
Returns the end 1 radius of this cone.
 
getRadius2(self)
Returns the end 2 radius of this cone.

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, endPt1, endPt2, radius1, radius2=0)
(Constructor)

 

Initialises cone with center-end-point coordinates and corresponding radii.

Parameters:
  • endPt1 (sequence of 3 floats) - Center coordinate of one end.
  • endPt2 (sequence of 3 floats) - Center coordinate of other end.
  • radius1 (float) - End 1 radius.
  • radius2 (float) - End 2 radius.
Overrides: object.__init__

getEndPt1(self)

 

Returns the coordinate of the center coordinate of end 1.

Returns:
Center coordinate of end 1.

getEndPt2(self)

 

Returns the coordinate of the center coordinate of end 2.

Returns:
Center coordinate of end 2.

getCenter(self)

 

Returns the coordinate of the center of this cone.

Returns:
Center coordinate of this cone.

getHeight(self)

 

Returns the height of this cone.

Returns: float
Center coordinate of this cone.

getRadius1(self)

 

Returns the end 1 radius of this cone.

Returns:
End 1 radius.

getRadius2(self)

 

Returns the end 2 radius of this cone.

Returns:
End 2 radius.