Variational Surface Reconstruction