利希滕伯格(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)
文件/