Initializerheckj.voxels 0.2.6Voxels
init(_:defaultVoxel:)
VoxelHash.swift:27init(_ otherVoxels: VoxelHash<T>, defaultVoxel: T)
init(_ otherVoxels: VoxelHash<T>, defaultVoxel: 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.
init()
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(_ vi: VoxelIndex, newValue: T)
mutating func set(_ vis: [VoxelIndex], newValue: T?)
func value(_ vi: VoxelIndex) -> T?