Neural Vector Fields: Generalizing Distance Vector Fields by Codebooks and Zero-Curl Regularization