Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shineyruan/computational-geometry-playground
A C++ playground for computational geometry algorithms & plotting.
https://github.com/shineyruan/computational-geometry-playground
computational-geometry conan cpp vcpkg
Last synced: 4 months ago
JSON representation
A C++ playground for computational geometry algorithms & plotting.
- Host: GitHub
- URL: https://github.com/shineyruan/computational-geometry-playground
- Owner: shineyruan
- License: gpl-3.0
- Created: 2022-05-03T20:51:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T10:58:38.000Z (7 months ago)
- Last Synced: 2024-09-28T13:41:48.171Z (4 months ago)
- Topics: computational-geometry, conan, cpp, vcpkg
- Language: C++
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Vcpkg Build](https://github.com/shineyruan/computational-geometry-playground/actions/workflows/vcpkg_build_release.yml/badge.svg)](https://github.com/shineyruan/computational-geometry-playground/actions/workflows/vcpkg_build_release.yml)
# computational-geometry-playground
A C++ playground for computational geometry algorithms & plotting.
Tested on:
* MacOS Ventura 13.3 with M1 chip
* Ubuntu 22.04 LTS
* Windows 11## Software Dependency
In all systems, the following software is required:
* CMake >=3.15
* C++ 17 compiler
* [Vcpkg](https://vcpkg.io/en/)
* [gnuplot](http://gnuplot.info/) (runtime dependency for visualization)## How to Build
This is a C++ 17 project managed with CMake and [Vcpkg](https://vcpkg.io/en/) in manifest mode. Make sure Vcpkg is installed correctly onto your system:
```bash
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
$HOME/vcpkg/bootstrap-vcpkg.sh # or $HOME/vcpkg/bootstrap-vcpkg.bat on Windows
```To build the source code, run CMake with Vcpkg toolchain:
```bash
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake
make -j
```On Windows 11, open Visual Studio 2022 with the generated project `cgsolver.sln`. In Visual Studio 2022, set `cgsolver` as startup project, and then hit `CTRL-B` to build, `CTRL-F5` to run.
## How to Run
Users could run any of the executables specified in the `examples/` folder.