Installation
One of the goals for Nanomesh is that it is easy to install. This means that all dependencies are available from PyPi.
If you use conda, it is advised to create a new environment:
conda create -n nanomesh python=3.8
conda activate nanomesh
Install nanomesh:
pip install nanomesh
Note, to enable the IPython widgets:
jupyter nbextension enable --py widgetsnbextension
Note, if you are using Jupyter lab:
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib jupyterlab-datawidgets itkwidgets
Tetgen
For tetrahedral meshing, Nanomesh requires tetgen to be installed.
If you are a conda user, you can do:
conda install -c conda-forge tetgen
Binaries are available here, and compilation instructions here.
Make sure tetgen is available on a directory on your system path. To verify tetgen is available, make sure that the following commands return a path:
Linux/MacOS
which tetgen
Windows
gcm tetgen.exe