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) – By default it is [0.0, 0.0, 0.0], you can pass an alternative position or a single atom index.

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

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

Return type:

Cartesian