centroidPosition(_:)

Returns the centroid position in the range output from the voxel index you provide.

VoxelScale.swift:24
func centroidPosition(_ index: VoxelIndex) -> SIMD3<T> where T : BinaryFloatingPoint

Parameters

index

The voxel’s index.

Returns

The position of the center of the voxel.