Variables
Const EDGE_INDEX
EDGE_INDEX: number[] = [-1, -1, 4, 0, 2, 0, 2, 0, 0, 0, -1, -1, 0, 0, 0, 0,6, 0, 4, 0, -1, -1, 2, 0, 6, 0, 4, 0, 6, 0, -1, -1]
Const NEXT_EDGES
NEXT_EDGES: number[] = [0, -1, 1, 0, 0, 1, -1, 0]
Const S10
S10: number[] = [6, 4, 2, 16, 6, 22, 2, 28]
Const S5
S5: number[] = [4, 8, 0, 2, 0, 26, 4, 14]
Const contourVertex
contourVertex: Fn5<ReadonlyVec, number, number, number, number, Vec>[] = [(src, w, x, y, iso) => [x + mix(src, w, x, y, x + 1, y, iso), y],(src, w, x, y, iso) => [x + 1, y + mix(src, w, x + 1, y, x + 1, y + 1, iso)],(src, w, x, y, iso) => [x + mix(src, w, x, y + 1, x + 1, y + 1, iso), y + 1],(src, w, x, y, iso) => [x, y + mix(src, w, x, y, x, y + 1, iso)]]