mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-30 04:58:17 +00:00
Update function name
This commit is contained in:
parent
46863c7ec0
commit
0949f75dc1
@ -5,7 +5,7 @@ use spade::HasPosition;
|
|||||||
use crate::geometry;
|
use crate::geometry;
|
||||||
|
|
||||||
/// Create a Delaunay triangulation of all points
|
/// Create a Delaunay triangulation of all points
|
||||||
pub fn delaunay(
|
pub fn triangulate(
|
||||||
points: Vec<geometry::Point<2>>,
|
points: Vec<geometry::Point<2>>,
|
||||||
) -> Vec<[geometry::Point<2>; 3]> {
|
) -> Vec<[geometry::Point<2>; 3]> {
|
||||||
use spade::Triangulation as _;
|
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| {
|
triangles.retain(|triangle| {
|
||||||
face_as_polygon.contains_triangle(
|
face_as_polygon.contains_triangle(
|
||||||
triangle.map(|point| point.native()),
|
triangle.map(|point| point.native()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user