scientific photon propagation and ray tracing in complex sceneries
In this development-kit, all the sub-projects of the merlict-raytracer are build and tested together.
- git
- g++ >= 6
- cmake
- libopencv-dev >= 2.4.8
git clone https://github.com/cherenkov-plenoscope/merlict_development_kit.git
mkdir build
The /build
directory is best located side by side to the /merlict
directory.
cd build
cmake ..
make
merlict has several executeables. To interacively explore a scenery use merlict-show
.
cd ../merlict_viewer/apps/examples
../../../build/merlict-show --scenery fact.json
Run the unit tests in the merlict_development_kit
directory to ensure your build is fine.
cd ..
./build/merlict-test
At the moment we are trying to improve the build system, trying to make merlict a header only library.
At the moment there is a tool called amalgamate.py
which can convert the current merlict
sources into one header and one cpp file. It can be used like:
cd <merlict-development-kit folder>
./amalgamate.py
It creates these 2 files merlict.h
and merlict.cpp
and in addition it creates
a test file merlict_test.cpp
, which can be used to test the project.
You can build it like
g++ merlict_test.cpp merlict.cpp -o merlict_test
./merlict_test
- 80 columns limit
- whitespaces instead of tabulators
- cpplint for C++
- google's C++ styleguide for e.g. naming
- pycodestyle for python