More a question than a review comment:  could this be faster as a memcopy(writeVerticesAt, startVertex) or something like that?