diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e80b6..53476fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.4.0 + +- Update parry dependency to 0.21. + ## v0.3.1 - Fix the extraction of a mesh from the poisson reconstruction. diff --git a/Cargo.toml b/Cargo.toml index edb9834..ec59d07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "poisson_reconstruction" repository = "https://github.com/ForesightMiningSoftwareCorporation/PoissonReconstruction" -version = "0.3.1" +version = "0.4.0" license = "MIT OR Apache-2.0" description = "Screened Poisson Reconstruction algorithm in Rust" authors = ["Sébastien Crozet "] @@ -17,8 +17,8 @@ serde = { version = "1", features = ["derive"], optional = true } rayon = "1" nalgebra = "0.33" nalgebra-sparse = "0.10" -parry3d-f64 = "0.17" -itertools = "0.10" +parry3d-f64 = "0.21" +itertools = "0.14" fnv = "1" [dev-dependencies] diff --git a/src/marching_cubes.rs b/src/marching_cubes.rs index d32cfeb..686742f 100644 --- a/src/marching_cubes.rs +++ b/src/marching_cubes.rs @@ -45,7 +45,7 @@ impl MeshBuffers { .chunks_exact(3) .map(|i| [i[0], i[1], i[2]]) .collect(); - (!idx.is_empty()).then(|| TriMesh::with_flags(self.vertices.clone(), idx, flags)) + TriMesh::with_flags(self.vertices.clone(), idx, flags).ok() } }