Class BuildBondsByDistance

This command creates the bonds between atoms of the given set of nodes and connect the residues when necessary. The cut_off distance is based on the bond order radius of the two atoms to be bound. The command will use the bhtree functionality to find the pairs of atoms to be found when available.This command can be applied on a current selection or used interactively when bound to the mouse event.
Package : Pmv
Module : bondsCommands
Class : BuildBondsByDistance
Command : buildBondsByDistance
Synopsis:
None<---buildBondsByDistance( nodes, display = True, **kw)
Required Arguments:
nodes --- any set for MolKit nodes describing molecular components
display --- when set to 1 the displayLines command is called and th
bonds are displayed as lines.
Optional Arguments:
kw --- any of the additional optional keywords supported by commands
(see ViewerFramework.VFCommands.Command documentation).
Required Commands:
displayLines
Known bugs:
None
Examples:
mol = mv.Mols[ 0 ]
mv.buildBondsByDistance(mol, display=1)

__call__(self,
nodes,
display=False,
**kw)(Call operator)

None <- buildBondsByDistance(nodes, display=1,**kw)
nodes : TreeNodeSet holding the current selection
display : Boolean flag if set to True the displayLines
commands are called.
The buildBondsByDistance commands connects atoms and residues in the
given set of nodes based on the covalent radius of each atoms to be
connected.