mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-28 12:07:54 +00:00
Update function name
This commit is contained in:
parent
46863c7ec0
commit
0949f75dc1
@ -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 _;
|
||||
|
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user