from visual import *
atom_O = sphere (pos = (0,0,0), color = color.red, \
radius = 1.52)
atom_H1 = sphere (pos = (0.957, 0,0), color = color.white, \
radius = 1.2)
atom_H2 = sphere (pos = (-0.240,0.927,0), color = color.white, \
radius = 1.2)

表示された水分子は、マウスを使って回転/拡大・縮小ができます。シンプルな分子Viewerであれば、簡単に作れそうです。

人気ブログランキング(クリックして応援してね)