Added a check to determine if the user is using 0-N or 0-(N-1) for vertex numbers and if this is the case we remap the numbers to the 0-N.