15 lines
399 B
C++
15 lines
399 B
C++
|
|
#pragma once
|
||
|
|
#include "vde/mesh/delaunay_2d.h"
|
||
|
|
#include "vde/core/line.h"
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace vde::mesh {
|
||
|
|
|
||
|
|
/// Constrained Delaunay Triangulation (CDT) in 2D
|
||
|
|
/// Ensures specified constraint edges appear in the triangulation
|
||
|
|
DelaunayResult constrained_delaunay_2d(
|
||
|
|
const std::vector<Point2D>& points,
|
||
|
|
const std::vector<std::pair<int, int>>& constraints);
|
||
|
|
|
||
|
|
} // namespace vde::mesh
|