Instance Propertyheckj.voxels 0.2.6Voxels
indices
The triangle mesh indices.
var indices: [UInt32]The triangle mesh indices.
var indices: [UInt32]import VoxelsA Swift library for storage, manipulation, export, and 3D rendering of Voxel data.
struct MeshBufferA buffer of vertex indices, positions and normals that make up a generated 3D mesh.
@frozen struct UInt32A 32-bit unsigned integer value type.
init(positions: [SIMD3<Float>] = [], indices: [UInt32] = [], normals: [SIMD3<Float>] = []) var memSize: Int { get }var normals: [SIMD3<Float>]The triangle mesh normals.
var positions: [SIMD3<Float>]The triangle mesh positions.
var quads: Int { get }var triangles: Int { get }mutating func addQuad(index: VoxelIndex, scale: VoxelScale<Float>, face: CubeFace) Adds a quad, scaled for the exterior view of the face of the voxel you provide.
mutating func addQuadPoints(p1: SIMD3<Float>, p2: SIMD3<Float>, p3: SIMD3<Float>, p4: SIMD3<Float>) Adds a quad, split along the shorter axis, into the mesh buffer.
mutating func reset() Clears all of the buffers, but keeps the memory allocated for reuse.
func validate() throws enum GeneratedMeshError