mesh
molecule_to_meshes(molecule, **kwargs)
Convert the provided molecule into a list of trimesh Meshes representing the molecule either as van der Waals spheres or as a CPK representation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
molecule
|
Molecule
|
The molecule to represent |
required |
kwargs
|
dict
|
Optional Keyword arguments |
{}
|
Returns:
Name | Type | Description |
---|---|---|
list |
a list of meshes representing atoms and (optionally) bonds |
Source code in chmpy/util/mesh.py
save_mesh(mesh, filename)
Save the given Trimesh to a file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
Trimesh
|
The mesh to save. |
required |
filename
|
str
|
The path to the destination file. |
required |