Computes and holds information about a ring, and finds bonds that
spear that ring.
Note: Objects of this class do not maintain pointers to either the
Structure object or the _Ring object that were used to create them.
|
__init__(self,
struct,
ring,
pbc=None)
Create a SpearRing object |
|
|
numpy.array , numpy.array
|
|
numpy.array, numpy.array, float
|
getNormalsAndRadius(self,
struct)
Find the average normal vector to the ring plane and compute the
radius of the ring. |
|
|
numpy.array
|
getRotationMatrix(self)
Get a rotation matrix that rotates the ring to be aligned with the
positive Z-axis when the ring centroid is at the origin. |
|
|
list
|
findSpears(self,
orig_struct,
atoms=None,
is_ring_struct=True,
distorted=False,
first_only=True,
cell=None,
dist=4.0)
Check for ring spears - bonds that pass through the face of the ring. |
|
|
schrodinger.structure.Structure or None
|
_roughCutAtoms(self,
orig_struct,
cell=None,
dist=4.0,
ignore=None)
A quick method for eliminating atoms that are so far from this ring
that they cannot possible spear it. |
|
|
None
|
centerAndRotate(self,
struct)
Apply the same translation and rotation to the structure as would be
required to place the ring centroid at the origin with the ring in
the XY plane. |
|
|
None
|
quickWeedAtoms(self,
struct)
Quickly weed out any atoms that are too far away from the ring
centroid to spear the ring. |
|
|
list
|
|
(float, float) or None
|
getBondXYIntersection(self,
atom1,
atom2)
Find where the bond from atom1 to atom2 intersects the XY (z=0)
plane. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|