diff --git a/src/transformation/voxelization/voxel_set.rs b/src/transformation/voxelization/voxel_set.rs index 5b37ff00..bd1695af 100644 --- a/src/transformation/voxelization/voxel_set.rs +++ b/src/transformation/voxelization/voxel_set.rs @@ -165,6 +165,11 @@ impl VoxelSet { &self.voxels } + /// A mutable reference to the set of voxels. + pub fn voxels_mut(&mut self) -> &mut Vec { + &mut self.voxels + } + /// Update the bounding box of this voxel set. pub fn compute_bb(&mut self) { let num_voxels = self.voxels.len();