Protocolheckj.voxels 0.2.6Voxels
StrideIndexable
A type that can be accessed with a single, linear location within an array.
protocol StrideIndexable
Browse conforming typesA type that can be accessed with a single, linear location within an array.
protocol StrideIndexable
import Voxels
A Swift library for storage, manipulation, export, and 3D rendering of Voxel data.
var size: Int { get }
func delinearize(_ arr: Int) throws -> VoxelIndex
func linearize(_ arr: VoxelIndex) throws -> Int
struct VoxelBounds
The coordinate bounds of a set of voxels.
struct VoxelIndex
The coordinates of a voxel location.
struct VoxelScale<T> where T : SIMDScalar, T : Sendable
A scale that provides a mapping between Voxel coordinates and 3D points.
struct MeshBuffer
A buffer of vertex indices, positions and normals that make up a generated 3D mesh.
typealias Vector = SIMD3<Float>
A compact representation of a 3 dimensional vector.
let CUBE_CORNERS: [VoxelIndex]
The collection of voxel index offsets for the corners of a voxel.
enum CubeFace
The set of cube faces and relevant directions and coordinates of those faces.