Improve the algorithm for figuring out where the number should be
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 2 Apr 2011 15:19:29 +0000 (15:19 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 2 Apr 2011 15:19:29 +0000 (15:19 +0000)
commite0936bbdf14b05964b4a0929012d042a4d554ba0
tree666937bddbe2f4dedef75f456b38b8acb0085f76
parentb0a2ee969ddd95665e0cbfd18b50c9d69e6346e0
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