Added #ifdef to iterate over Index or VertexNum