spheres_for_positions

visualize.spheres_for_positions(
    positions,
    radii=None,
    scale=0.8,
    color=[[255, 255, 255, 1]],
    theta_resolution=20,
    phi_resolution=20,
)

Return trimesh spheres at arbitrary positions with given radii and colors.

Parameters

Name Type Description Default
positions list of lists of floats, the positions of the atoms required
radii list of floats, default None None
scale the size of the spheres 0.8
color a list of colors for each atom. If you want all atoms to be the same color, just put the one color in a list [[255, 255, 255, 1]]
theta_resolution The number of points around the polar angle, defaults to 20 (optional) 20
phi_resolution The number of points around the azimuthal angle, defaults to 20 (optional) 20

Returns

Name Type Description
A list of trimesh objects.