pub struct VoxelArray { /* private fields */ }Implementations§
Source§impl VoxelArray
impl VoxelArray
pub fn new( voxel_indices: &[[i32; 4]], bounding_box: BoundingBox, voxel_extent: f32, ) -> Result<Self>
pub fn info(&self) -> Result<VoxelArrayInfo>
pub fn count(&self) -> usize
pub fn set_voxel(&self, index: [i32; 4])
pub fn voxel_exists( &self, index: [i32; 4], allow_any_x: bool, allow_any_y: bool, allow_any_z: bool, allow_any_shell: bool, ) -> bool
pub fn voxel_indices(&self) -> Vec<[i32; 4]>
pub fn voxels_within_extent(&self, extent: &VoxelIndexExtent) -> Vec<[i32; 4]>
pub fn union_with(&self, other: &Self)
pub fn intersect_with(&self, other: &Self)
pub fn difference_with(&self, other: &Self)
pub fn index_of_spatial_location(&self, location: [f32; 3]) -> [i32; 4]
pub fn spatial_location_of_index(&self, index: [i32; 4]) -> [f32; 3]
pub fn voxel_bounding_box_at_index(&self, index: [i32; 4]) -> BoundingBox
pub fn convert_to_signed_shell_field(&self)
pub fn set_shell_field_interior_thickness(&self, value: f32)
pub fn set_shell_field_exterior_thickness(&self, value: f32)
pub fn coarse_mesh(&self) -> Option<Mesh>
pub fn mesh(&self) -> Option<Mesh>
pub fn as_object(&self) -> Object
Trait Implementations§
Source§impl Clone for VoxelArray
impl Clone for VoxelArray
Source§fn clone(&self) -> VoxelArray
fn clone(&self) -> VoxelArray
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 moreAuto Trait Implementations§
impl Freeze for VoxelArray
impl RefUnwindSafe for VoxelArray
impl !Send for VoxelArray
impl !Sync for VoxelArray
impl Unpin for VoxelArray
impl UnsafeUnpin for VoxelArray
impl UnwindSafe for VoxelArray
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