From f7a9233a3d0fc5fa3458ba45d34a606cf8a8b9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 9 Jun 2025 11:47:35 +0200 Subject: [PATCH 1/2] chore: switch to parry 0.21 --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- src/marching_cubes.rs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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..d78becb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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() } } From 43c430ca889f0ecb3fa6a3835ac45fee878de23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 9 Jun 2025 11:47:43 +0200 Subject: [PATCH 2/2] Release v0.4.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d78becb..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 "]