weas-widget
weas-widget copied to clipboard
A widget to visualize and edit atomic structures in Jupyter Notebook
- surface builder - nanopaticle - Reciprocal space - lattice plane
For example, I only want to show the top layer of a surface.
For TiO2 set ``` avr.modelSticks = [1, 1, 1, 1, 0, 0]; ``` and draw polyhedra. It show it has four neighbor, but two are duplidate.
I want to render the some molecular structures,and I learn the documentatioin. But the colors of CPK and Vesta are not so pretty good. So I want to set color...
```python viewer.ops.selection.select_all() viewer.ops.transform.translate(vector = [5, 0, 0]) ```  In the GUI, when translating atoms using `g,` the `TransformControls` call confirmOperation to redraw the atoms and update the labels.