src/renderer/decoder/polygonDecoder.js
function resizeBuffers (additionalSize) {
    const minimumNeededSize = index + additionalSize;
    if (minimumNeededSize > geomBuffer.vertices.length) {
        const newSize = 2 * minimumNeededSize;
        geomBuffer.vertices = resizeBuffer(geomBuffer.vertices, newSize);
        geomBuffer.normals = resizeBuffer(geomBuffer.normals, newSize);
    }
}
function resizeBuffers (additionalSize) {
    const minimumNeededSize = index + additionalSize;
    if (minimumNeededSize > geomBuffer.vertices.length) {
        const newSize = 2 * minimumNeededSize;
        geomBuffer.vertices = resizeBuffer(geomBuffer.vertices, newSize);
        geomBuffer.normals = resizeBuffer(geomBuffer.normals, newSize);
    }
}
function resizeBuffers ( additionalSize ) { const minimumNeededSize = index + additionalSize ; if ( minimumNeededSize > geomBuffer . vertices . length ) { const newSize = 2 * minimumNeededSize ; geomBuffer . vertices = resizeBuffer ( geomBuffer . vertices , newSize ) ; geomBuffer . normals = resizeBuffer ( geomBuffer . normals , newSize ) ; } }
Resize buffers as needed if `additionalSize` floats overflow the current buffers
Resize buffers as needed if additionalSize floats overflow the current buffers