Function packBufferGeometries