Added maxDeviation to arc approximation