The algorithm used in sdf.h does multiple passes and only produces an approximation. Since its invention, many exact linear time algorithms have been proposed, but people keep implementing the old algorithm.
I thought this might be a good opportunity to promote one of the newer algorithms.
The algorithm used in sdf.h does multiple passes and only produces an approximation. Since its invention, many exact linear time algorithms have been proposed, but people keep implementing the old algorithm. I thought this might be a good opportunity to promote one of the newer algorithms.
https://github.com/983/df