利希滕伯格(Lichtenberg)是介电分解的示例实现的集合,代表了Lichtenberg Figure
例如雷声和闪电。
核心算法的源代码在C ++中实现。示例以Python(通过Pybind11)编写。
(对于Ubuntu)安装C ++编译器和CMAKE
sudo apt install build-essential cmake
克隆此存储库(不要忘记递归选项)
git clone --recursive https://github.com/chromia/lichtenberg.git
cd lichtenberg
使用setup.py安装
python setup.py install
例如示例/目录中
cd examples
python 01_basic.py
...
结果将输出到示例/目录(例如示例/ 01_basic_gray.png)
文档/