public int GetError(ErrorData errorData)
 {
     return(errorData.TotalErrorWhenPolygonChanged(newPolygon, index));
 }