Included part of the if(iNbVertex) at the end to be part of the for loop as
it was essentially just another step. Kept the if(iNbVertex) outside the for loop just for the *indices incrementing.