py3dmolhelper module#

homcloud.py3dmolhelper.add_edges(view, edges, color, radius, alpha=1.0)[source]#

Add edges to py3dmol view.

Parameters:
  • view (py3Dmol.view) – Py3Dmol’s view object

  • edges (list[list[list[float]]]) – List of edges

  • color (str) – Name of color

  • radius (float) – Radius of the cylinders

  • alpha (float) – Alpha value (1.0: opaque, 0.0: transparent)

Returns:

None

homcloud.py3dmolhelper.add_surface(view, triangles, color, alpha=1.0)[source]#

Add surface (triagnles) to py3dmol view.

Parameters:
  • view (py3Dmol.view) – Py3Dmol’s view object

  • triangles (list[list[list[float]]]) – List of triangles

  • color (str) – Name of color

  • alpha (float) – Alpha value (1.0: opaque, 0.0: transparent)