mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-25 16:45:52 +00:00
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:
parent
6a0417bb2d
commit
4a3b4042ec
@ -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},
|
|
||||||
};
|
};
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user