In the video he mentioned doing a least squares fit to get the final surface, so that sounds about right.