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

Class DistConnections

 object --+    
          |    
??.instance --+
              |
             DistConnections

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(...)
 
__len__(...)
 
__reduce__(...)
helper for pickle
 
addParticles(...)
Adds SimpleSphere objects to this connection finder and determines any new connections.
int
getNumConnections(...)
Returns the number of connections found by this connection finder.
int
getNumParticles(...)
Returns the number of particles which have been added to this connection finder.

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  __instance_size__ = 176
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • maxDist (float) - Threshhold distance governing which particles are connected.
  • connTag (int) - Default tag given to the connections.
  • iterable (iterable) - Iterable whose next method returns a SimpleSphere object.
Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

addParticles(...)

 

Adds SimpleSphere objects to this connection finder and determines any new connections.

Parameters:
  • iterable (iterable) - Iterator returning SimpleSphere objects.

    Adds SimpleSphere objects to this connection finder and determines any new connections.

  • connTag (int) - New connections are assigned this tag.

getNumConnections(...)

 

Returns the number of connections found by this connection finder.

Returns: int
number of TaggedIdConnection objects in this collection.

getNumParticles(...)

 

Returns the number of particles which have been added to this connection finder.

Returns: int
The number of particles added to this connection finder.