Style fix: move VertexElementList::const_iterator it definition into for() construct, use vertices.end() instead of additional end variable