Merge change 10840

* changes:
  the vertex index should be "first + i".