chemcoord.Cartesian.cut_sphere

Cartesian.cut_sphere(radius=15.0, origin=None, outside_sliced=True, preserve_bonds=False)

Cut a sphere specified by origin and radius.

Parameters:
  • radius (float)

  • origin (list) – Please note that you can also pass an integer. In this case it is interpreted as the index of the atom which is taken as origin.

  • outside_sliced (bool) – Atoms outside/inside the sphere are cut out.

  • preserve_bonds (bool) – Do not cut covalent bonds.

Return type:

Cartesian