Analytical gradient of SDF
Currently we use finite difference to compute the gradient of signed distance field. Alternatively, it can be computed directly based on the coordinates, by taking the gradient of the basis functions. The benefits include
- subject to no round-off errors
- efficiency. The gradient is just an explicit linear function of the coordinates.