Class NeighborGroups
java.lang.Object
NeighborGroups
- public class NeighborGroups
- extends java.lang.Object
NeighborGroups stores assembly subunits in neighborgroups for fast collision
detection.That is, it divides the subunits in an Assembly into groups of
physically close neighbors for that methods which need to compare physically
close subunits.
|
Field Summary |
java.util.HashMap |
groups
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groups
public java.util.HashMap groups
NeighborGroups
public NeighborGroups()
- Creates default NeighborGroups
NeighborGroups
public NeighborGroups(Assembly asm)
- Creates NeighborGroups with specified Assembly asm. actually sorts the
Subunits in asm into neighborgroups according to a subdivision-spaced
cubish grid
- Parameters:
asm -
NeighborGroups
public NeighborGroups(Assembly asm,
boolean findLoop)
- Constructs NeighborGroups to find near binding sites to bind them
- Parameters:
asm - findLoop -
findLoopCandidates
public java.util.Vector findLoopCandidates(javax.vecmath.Vector3d bsTipPos)
findHindrance
public boolean findHindrance(Subunit sub)