tightbinder.crystal.CrystalView#

class CrystalView(crystal)[source]#

Bases: object

The CrystalView class’ aim is to wrap all the logic relative to the visualization of the crystal using the vpython library. This is, rendering the solid appropriately, and also rendering a minimal user interface to interact with the visualization. Note that typehints for VPython components have been deleted to avoid importing the library beforehand.

Methods

visualize

Method to render the 3d visualization of the crystal.

visualize()[source]#

Method to render the 3d visualization of the crystal. It also renders a GUI to interact with the visualization.

Return type:

None