Add comment

This commit is contained in:
Hanno Braun 2025-02-21 21:45:22 +01:00
parent 42d366d684
commit b5965d34b6

View File

@ -75,6 +75,8 @@ fn points(
fn triangles(points: &[TriangulationPoint]) -> Vec<[TriangulationPoint; 3]> {
let mut triangulation = spade::ConstrainedDelaunayTriangulation::<_>::new();
// We're passing duplicate points to the triangulation here. It doesn't seem
// to mind though.
triangulation
.add_constraint_edges(points.iter().copied(), true)
.unwrap();