Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 920 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 920 Bytes

Delaunay Triangulation

A library to compute the 2D delaunay triangulation of a set of points, using the Bowyer-Watson algorithm. While not the fastest algorithm for triangulation, it's easy enough to understand.

Building

Requirements

  • A C++17 compliant compiler
  • CMake (version 3.x)
mkdir build
cd build
cmake ..
make

Usage

#include "delaunay.h"

int main() {
  std::vector<point> points = ...;
  std::vector<triangle> triangles = delaunay::triangulate(points);
}

References