![]() |
Terrain Rasterizer
Conversion of GPS data into 2.5D topographic maps
|
Implementation of Delaunay triangulation using delaunator-cpp. More...
#include "triangulation.hpp"#include <cmath>#include <delaunator.hpp>#include <iostream>
Functions | |
| double | distSq (const Point &a, const Point &b) |
| Calculates the squared Euclidean distance between two points. | |
| Mesh | triangulate (const std::vector< Point > &points) |
| Performs Delaunay triangulation on a set of 2D points. | |
Implementation of Delaunay triangulation using delaunator-cpp.
Calculates the squared Euclidean distance between two points.
Used to avoid square root calculations when comparing distances.
| a | First point. |
| b | Second point. |
Performs Delaunay triangulation on a set of 2D points.
Uses the delaunator-cpp library to generate a triangulation from the projected X and Y coordinates of the input points. The Z coordinate is preserved in the resulting mesh.
| points | The vector of input points to triangulate. |
