| Crates.io | threecrate-reconstruction |
| lib.rs | threecrate-reconstruction |
| version | 0.5.0 |
| created_at | 2025-07-10 11:17:16.658085+00 |
| updated_at | 2025-09-27 10:22:34.582329+00 |
| description | Surface reconstruction algorithms for threecrate |
| homepage | https://github.com/rajgandhi1/threecrate.git |
| repository | https://github.com/rajgandhi1/threecrate.git |
| max_upload_size | |
| id | 1746172 |
| size | 238,464 |
Surface reconstruction algorithms for generating meshes from point clouds.
Add this to your Cargo.toml:
[dependencies]
threecrate-reconstruction = "0.1.0"
threecrate-core = "0.1.0"
use threecrate_reconstruction::{poisson_reconstruction, ball_pivoting_reconstruction};
use threecrate_core::{PointCloud, Point3f};
// Load point cloud with normals
let cloud = PointCloud::from_points(vec![/* points */]);
// Poisson reconstruction
let mesh = poisson_reconstruction(&cloud, 6, 1.0, 0.1)?;
println!("Generated mesh with {} faces", mesh.faces.len());
// Ball pivoting reconstruction
let radius = 0.1;
let mesh = ball_pivoting_reconstruction(&cloud, radius)?;
println!("Generated mesh with {} faces", mesh.faces.len());
This project is licensed under either of
at your option.