2 unstable releases

0.2.0 Jan 15, 2023
0.1.0 Jan 12, 2023

#567 in Algorithms

Download history 306/week @ 2023-12-18 60/week @ 2023-12-25 250/week @ 2024-01-01 498/week @ 2024-01-08 946/week @ 2024-01-15 507/week @ 2024-01-22 639/week @ 2024-01-29 426/week @ 2024-02-05 29/week @ 2024-02-12 406/week @ 2024-02-19 511/week @ 2024-02-26 898/week @ 2024-03-04 1101/week @ 2024-03-11 551/week @ 2024-03-18 975/week @ 2024-03-25 585/week @ 2024-04-01

3,216 downloads per month

MIT/Apache

16MB
1.5K SLoC

.github/workflows/release.yml crates.io

PoissonReconstruction

This is a Rust implementation of the Screened Poisson Reconstruction surface reconstruction algorithm. This implementation comes courtesy of Foresight Mining Software Corporation who sponsor its creation and maintenance.

Reference papers

Features

Given a set of points and normals, the PoissonReconstruction will generate an implicit function from which the reconstructed surface can be extracted.

let poisson = PoissonReconstruction::from_points_and_normals(
    &points, &normals, 0.0, 4, 5, 10
);
let mesh_vertices = poisson.reconstruct_mesh();

The PoissonReconstruction representing an implicit function, it can be evaluated at space locations with PoissonReconstruction::eval. For convenience, a very basic isosurface extraction based on marching-cubes is provided with PoissonReconstruction::reconstruct_mesh().

Limitations

Some speed optimizations described in the Kazhdan et al. paper. Namely, it currently doesn’t implement the hierarchical clustering of point optimization nor the conforming version of the castadic solver.

License

PoissonReconstruction is free and open source! All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Sponsors

The creation and maintenance of PoissonReconstruction is sponsored by Foresight Mining Software Corporation.

Foresight Mining Software Corporation

Samples

Poisson woman Poisson bunny Poisson cat

Dependencies

~7.5MB
~159K SLoC