Make method private

It's not used anywhere else. The only reason that it was public in the
first place, was that the triangulation code used to be scattered all
over the kernel.
This commit is contained in:
Hanno Braun 2022-03-21 17:34:52 +01:00
parent 6a0417bb2d
commit 4a3b4042ec
2 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,6 @@ mod sweep;
mod triangulation; mod triangulation;
pub use self::{ pub use self::{
approximation::Approximation, approximation::Approximation, sweep::sweep_shape,
sweep::sweep_shape, triangulation::triangulate,
triangulation::{delaunay, triangulate},
}; };

View File

@ -160,9 +160,7 @@ pub fn triangulate(
} }
/// Create a Delaunay triangulation of all points /// Create a Delaunay triangulation of all points
pub fn delaunay( fn delaunay(points: Vec<geometry::Point<2>>) -> Vec<[geometry::Point<2>; 3]> {
points: Vec<geometry::Point<2>>,
) -> Vec<[geometry::Point<2>; 3]> {
use spade::Triangulation as _; use spade::Triangulation as _;
let triangulation = spade::DelaunayTriangulation::<_>::bulk_load(points) let triangulation = spade::DelaunayTriangulation::<_>::bulk_load(points)