2026-07-23 07:04:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
#include "vde/mesh/delaunay_2d.h"
|
|
|
|
|
#include "vde/core/line.h"
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace vde::mesh {
|
2026-07-23 08:19:24 +00:00
|
|
|
using core::Point2D;
|
|
|
|
|
using core::Point3D;
|
|
|
|
|
using core::Vector3D;
|
2026-07-23 07:04:11 +00:00
|
|
|
|
|
|
|
|
/// 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
|