diff --git a/Cargo.toml b/Cargo.toml index e2aaa615b..f194c1c25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -141,7 +141,7 @@ dlt = "0.13" lstsq = "0.6.0" parry2d-f64 = "0.17" parry3d-f64 = "0.17" -delaunator = "0.2.0" +delaunator = "1.0" ncollide2d = { package = "ncollide2d-updated", version = "0.36.3" } ncollide3d = { package = "ncollide3d-updated", version = "0.36.3" } diff --git a/freemovr-calibration/ncollide-geom/src/lib.rs b/freemovr-calibration/ncollide-geom/src/lib.rs index dae5df3b0..1ac9bbc90 100644 --- a/freemovr-calibration/ncollide-geom/src/lib.rs +++ b/freemovr-calibration/ncollide-geom/src/lib.rs @@ -12,7 +12,7 @@ pub fn mask_from_points(viewport_points: &[(f64, f64)]) -> Mask { .map(|p| delaunator::Point { x: p.0, y: p.1 }) .collect(); - let delaun = delaunator::triangulate(&points).expect("No triangulation exists."); + let delaun = delaunator::triangulate(&points); let delta = nalgebra::Isometry2::identity(); let shapes: Vec<_> = delaun diff --git a/parry-geom/src/lib.rs b/parry-geom/src/lib.rs index 0504159f5..982430fab 100644 --- a/parry-geom/src/lib.rs +++ b/parry-geom/src/lib.rs @@ -12,7 +12,7 @@ pub fn mask_from_points(viewport_points: &[(f64, f64)]) -> Mask { .map(|p| delaunator::Point { x: p.0, y: p.1 }) .collect(); - let delaun = delaunator::triangulate(&points).expect("No triangulation exists."); + let delaun = delaunator::triangulate(&points); let delta = nalgebra::Isometry2::identity(); let shapes: Vec<_> = delaun