if you make this `static`, you only have to call `initVertex` on the first iteration.