Manim Chemistry Molecules

class manim_chemistry.manim_chemistry_molecule.mc_atom.MCAtom(element: MCElement, coords: array = array([0, 0, 0]), atoms: list | None = None, bonds: list | None = None, molecule: None = None, molecule_index: int | None = None)[source]

Abstraction of an atom in a molecule: - It’s MCElement. - It’s 3D coordinates. - The atoms bonded to it. - The bonds associated with it. - It’s molecule. - It’s index in the molecule.

add_atoms(atoms)[source]

Assigns bonded atoms to MCAtom.

Args:

atoms (MCAtom or List[MCAtom])

Raises:

Exception: In case the atoms are not MCAtoms or a list.

static construct_from_atom_dict(atom_index, atom_data_dict: Dict)[source]

Given an atom data dict from a parser, returns an MCAtom

Args:

atom_dict (Dict): See data_parser function from BaseParser

Output:

MCAtom