Package esys :: Package lsm :: Package geometry :: Module GeometryPy :: Class Packer
[hide private]
[frames] | no frames]

Class Packer

 object --+    
          |    
??.instance --+
              |
             Packer
Known Subclasses:

Base class for sphere packers. The generate method is over-ridden in subclasses to create sphere packings.

Instance Methods [hide private]
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
__reduce__(...)
helper for pickle
 
generate(...)
Causes this packer to create spheres in a packing.
int
getNumSpheres(...)
Returns the number of spheres generated in the packing.
SimpleSphereCollection
getSimpleSphereCollection(...)
Returns generated spheres as a SimpleSphereCollection.
 
getSimpleSphereIterator(...)
Returns an iterator which can be used to iterate over all spheres in the packing.

Inherited from unreachable.instance: __new__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Raises an exception This class cannot be instantiated from Python

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

generate(...)

 

Causes this packer to create spheres in a packing.

Causes this packer to create spheres in a packing.

getNumSpheres(...)

 

Returns the number of spheres generated in the packing.

Returns: int
number of spheres in packing.

getSimpleSphereIterator(...)

 

Returns an iterator which can be used to iterate over all spheres in the packing.

Returns:
iterator@rtype: iterable