Efficiency improvements to vertex classes/calc-polygon.