export const Kernel = { Corners: [ [ 1, 1, -1], [ 1, -1, -1], [-1, 1, -1], [-1, -1, -1], [ 1, 1, 1], [ 1, -1, 1], [-1, 1, 1], [-1, -1, 1] ], Cardinal: [ [ 1, 0, 0], [ 0, 1, 0], [-1, 0, 0], [ 0, -1, 0], [ 0, 0, 1], [ 0, 0, -1] ], Loop(inList, inVector, inHandler) { for(let i=0; i { let offsetIndex = Region.CoordsToIndex(inX, inY, inZ); if(!inRegion.Voxels[offsetIndex]) { inRegion.Surface.push(i); return true; } }); } } console.log("looped over", i); } };