TriClipper is a header-only library that implements the Vatti clipping algorithm.
To use TriClipper, simply add triclipper.h to your project.
If you are curious to know how TriClipper works in more detail, see How It Works.
TriClipper comes with examples and tests which can be built using the CMake script CMakeLists.txt.
For example:
-
Create a folder named "build" in the root of the git repository and navigate to this folder:
mkdir build && cd build
-
Run CMake:
cmake ..
The table below lists available CMake options:
Option | Default | Description |
---|---|---|
BUILD_EXAMPLES | ON |
Defines if examples should be built. |
BUILD_TESTS | ON |
Defines if tests should be built. |
DEBUG_OUTPUT | ON |
Defines if debug output should be enabled. |
TriClipper is licensed under the MIT License.