next up previous contents index
Next: selection.only_mainchain() select Up: The selection class: handling Previous: selection.by_residue() make   Contents   Index

selection.select_sphere() -- select all atoms within radius

select_sphere(radius)
This returns a new selection containing all atoms within the given distance from any atom in the current selection (note that this uses only the current coordinates -- if you move the atoms later, e.g. during an optimization, the set of atoms does not change). Compare with Point.select_sphere().
Example: See selection() command.



Automatic builds 2009-06-12