Data structure for triangle meshes
redblobgames.com
redblobgames.com
It really is an elegant use of some basic topology with impressive results, a full Voronoi/Delaunay linear-log time algorithm in less than a page of easily implementable pseudocode (once the data structure is written).
[0] http://www.redblobgames.com/
[1] http://www-cs-students.stanford.edu/~amitp/gameprog.html
I needed to draw lines in a little thing I'm doing for https://itch.io/jam/cga-jam and stumbled across http://www.redblobgames.com/grids/line-drawing.html
Implemented it last night and it worked wonderfully.
The list is huge!