_preserve_bonds¶
-
Cartesian.
_preserve_bonds
(sliced_cartesian)[source]¶ Is called after cutting geometric shapes.
- If you want to change the rules how bonds are preserved, when
- applying e.g.
Cartesian.cutsphere()
this is the function you have to modify. - It is recommended to inherit from the Cartesian class to
- tailor it for your project, instead of modifying the source code of ChemCoord.
Parameters: sliced_frame (Cartesian) – Returns: Return type: Cartesian