chemcoord.Cartesian.cut_cuboid

Cartesian.cut_cuboid(a=20, b=None, c=None, origin=None, outside_sliced=True, preserve_bonds=False)

Cut a cuboid specified by edge and radius.

Parameters:
  • a (float) – Value of the a edge.
  • b (float) – Value of the b edge. Takes value of a if None.
  • c (float) – Value of the c edge. Takes value of a if None.
  • 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 away.
  • preserve_bonds (bool) – Do not cut covalent bonds.
Returns:

Return type:

Cartesian