pub enum ThinningMethod {
Grid {
cell_size: f64,
},
Random {
target_count: usize,
seed: u64,
},
PoissonDisk {
min_distance: f64,
seed: u64,
},
}Expand description
Selection of thinning algorithm and its parameters.
This enum is the input to thin_with_stats; each variant carries the
parameters needed by exactly one of the public thinning functions.
Variants§
Grid
Voxel-bucket thinning with cubic voxels of side cell_size. Equivalent
to PDAL’s filters.sample with a uniform grid.
Fields
Random
Random sub-sampling that keeps exactly target_count points (or fewer
when the input is smaller) via a deterministic Fisher-Yates shuffle.
Fields
PoissonDisk
Poisson-disk thinning ensuring every pair of kept points is at least
min_distance apart in 3D Euclidean distance.
Trait Implementations§
Source§impl Clone for ThinningMethod
impl Clone for ThinningMethod
Source§fn clone(&self) -> ThinningMethod
fn clone(&self) -> ThinningMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThinningMethod
Auto Trait Implementations§
impl Freeze for ThinningMethod
impl RefUnwindSafe for ThinningMethod
impl Send for ThinningMethod
impl Sync for ThinningMethod
impl Unpin for ThinningMethod
impl UnsafeUnpin for ThinningMethod
impl UnwindSafe for ThinningMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more