Instance Methodheckj.voxels 0.2.6Voxels
set(_:newValue:)
VoxelHash.swift:58mutating func set(_ vi: VoxelIndex, newValue: T?)
mutating func set(_ vi: VoxelIndex, newValue: T?)
import Voxels
A Swift library for storage, manipulation, export, and 3D rendering of Voxel data.
struct VoxelHash<T> where T : Sendable
A collection of voxels backed by a hash table.
struct VoxelIndex
The coordinates of a voxel location.
init()
init(_ otherVoxels: VoxelHash<T>, defaultVoxel: T)
init(bounds: VoxelBounds)
init(defaultVoxel: T)
var bounds: VoxelBounds
var count: Int { get }
subscript(index: VoxelIndex) -> T? { get set }
mutating func set(_ vi: VoxelIndex, newValue: T)
mutating func set(_ vis: [VoxelIndex], newValue: T?)
func value(_ vi: VoxelIndex) -> T?