spatialrust_voxelize/lib.rs
1//! Voxel occupancy / feature grids for SpatialRust.
2//!
3//! Turns a point cloud into a dense 3D grid — the tensor representation learned
4//! models consume (3D CNNs, occupancy networks). The grid is row-major in
5//! `(z, y, x)` order so it reshapes directly to an `(nz, ny, nx)` array.
6
7#![deny(unsafe_code)]
8#![warn(missing_docs)]
9
10#[cfg(feature = "voxelize-occupancy")]
11mod occupancy;
12
13#[cfg(feature = "voxelize-range-image")]
14mod range_image;
15
16#[cfg(feature = "voxelize-occupancy")]
17pub use occupancy::{voxelize, OccupancyGrid, VoxelFill, VoxelGridConfig};
18
19#[cfg(feature = "voxelize-range-image")]
20pub use range_image::{range_image, RangeImage, RangeImageConfig};