Moved glVertexPointer out of the innermost loop: calc-poly now accumulates into a global buffer, and returns offset/length pairs into it.