Python module to visualize Lattice Knots and Links in 3D, and analyse their distortion.
High Distortion vertices of the Minimal Stick Trefoil (25x)
- numpy >= 1.21.0
- matplotlib >= 3.3.4
- vtk >= 9.0.2
- mayavi >= 4.7.2
The programs have been tested on the versions of the dependencies listed above, however, it may run on lower versions too.
- Install Miniconda (preferred) with Python 3.7 https://docs.conda.io/en/latest/miniconda.html
- Install numpy conda install -c anaconda numpy
- Install matplotlib conda install -c conda-forge matplotlib
- Install vtk conda install -c conda-forge vtk
- Install mayavi conda install -c conda-forge mayavi
- Modify the
DIRECTIONS
variable in the main.py file - Comment out the other definitions of the
DIRECTIONS
variable - Run
main.py
inside anaconda prompt in order to draw your knot.