Improve the algorithm for figuring out where the number should be
commit624bce4917231a91cf40ee87b554eda833cfd75c
authorSimon Tatham <anakin@pobox.com>
Sat, 2 Apr 2011 15:19:29 +0000 (2 15:19 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 2 Apr 2011 15:19:29 +0000 (2 15:19 +0000)
tree666937bddbe2f4dedef75f456b38b8acb0085f76
parent94807f7b2093d2f265bdfac2801dee3d1db39188
Improve the algorithm for figuring out where the number should be
drawn in a face: averaging the vertex positions works fine for regular
or roughly regular convex polygons, but it'll start being a pain for
odder or concave ones.

This is a kludgey brute-force algorithm; I have ideas about more
elegant ways of doing this job, but they're more fiddly, so I thought
I'd start with something that basically worked.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9137 cda61777-01e9-0310-a592-d414129be87e
loopy.c