dragon8 is a program that optimizes the distribution of a given number of points within a given shape according to some criteria.
dragon8 is currently in development.
dragon8 is a "zápočtový program" for the Programování 3 class.
best distribution of n = 50 points inside a square with lowest energy (~1/r potential) found by the program
best distribution of n = 1500 points inside an equilateral triangle with lowest energy found by the program
- CMake 3.16 or higher
- CImg 2.9.4
- a header-only image-processing library
- site: http://cimg.eu/
- repository: https://github.com/dtschump/CImg
- v.2.9.4 download: https://github.com/dtschump/CImg/archive/v.2.9.4.zip
- add CImg (see above under dependencies)
- unzip the downloaded archive
- copy the extracted
CImg.h
file into the/src
directory inside (a clone of) this repository
- create a CMake build directory; for example
- create a directory in
/build/release
<repo_dir>$ mkdir -p build/release
- let CMake create the build files from the contents of the
/src
directory<repo_dir>/build/release$ cmake -DCMAKE_BUILD_TYPE=Release <repo_dir>/src
- hereinafter, we refer to this build directory (here
<repo_dir>/build/release
) as<build_dir>
- create a directory in
- let CMake run the compilation
<build_dir>$ cmake --build .
- run the generated executable
<build_dir>$ ./dragon8