function vertexCallback(data, polyVertArray) {
              polyVertArray[polyVertArray.length] = data[0];
              polyVertArray[polyVertArray.length] = data[1];
              polyVertArray[polyVertArray.length] = data[2];
            }
ensures that p5 is using a 3d renderer. throws an error if not.