pub struct VoxelGridConfig {
pub voxel_size: f32,
pub origin: Option<[f32; 3]>,
pub dims: Option<[usize; 3]>,
pub fill: VoxelFill,
}Expand description
Configuration for voxelize.
Fields§
§voxel_size: f32Side length of each cubic voxel.
origin: Option<[f32; 3]>Grid origin (lower corner). None uses the cloud’s minimum corner.
dims: Option<[usize; 3]>Grid dimensions (nx, ny, nz). None derives them from the cloud bounds.
fill: VoxelFillHow to fill each voxel.
Implementations§
Source§impl VoxelGridConfig
impl VoxelGridConfig
Sourcepub fn new(voxel_size: f32) -> VoxelGridConfig
pub fn new(voxel_size: f32) -> VoxelGridConfig
Creates a config from the voxel size (auto origin/dims, occupancy fill).
Trait Implementations§
Source§impl Clone for VoxelGridConfig
impl Clone for VoxelGridConfig
Source§fn clone(&self) -> VoxelGridConfig
fn clone(&self) -> VoxelGridConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoxelGridConfig
impl Debug for VoxelGridConfig
Source§impl Default for VoxelGridConfig
impl Default for VoxelGridConfig
Source§fn default() -> VoxelGridConfig
fn default() -> VoxelGridConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for VoxelGridConfig
impl PartialEq for VoxelGridConfig
impl Copy for VoxelGridConfig
impl StructuralPartialEq for VoxelGridConfig
Auto Trait Implementations§
impl Freeze for VoxelGridConfig
impl RefUnwindSafe for VoxelGridConfig
impl Send for VoxelGridConfig
impl Sync for VoxelGridConfig
impl Unpin for VoxelGridConfig
impl UnsafeUnpin for VoxelGridConfig
impl UnwindSafe for VoxelGridConfig
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