Update function name

This commit is contained in:
Hanno Braun 2022-04-11 17:41:33 +02:00
parent 46863c7ec0
commit 0949f75dc1
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ use spade::HasPosition;
use crate::geometry;
/// Create a Delaunay triangulation of all points
pub fn delaunay(
pub fn triangulate(
points: Vec<geometry::Point<2>>,
) -> Vec<[geometry::Point<2>; 3]> {
use spade::Triangulation as _;

View File

@ -53,7 +53,7 @@ pub fn triangulate(
},
));
let mut triangles = delaunay::delaunay(points);
let mut triangles = delaunay::triangulate(points);
triangles.retain(|triangle| {
face_as_polygon.contains_triangle(
triangle.map(|point| point.native()),