UNPKG

mesh-simplifier

Version:

Collection of mesh simplification methods written in Typescript

10 lines (9 loc) 205 B
export const getUintArrayByVertexLength = (length: number) => { if (length < 256) { return Uint8Array; } else if (length < 65536) { return Uint16Array; } else { return Uint32Array; } }