simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Apr 2 16:19:29 BST 2011


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9137
Date:           2011-04-02 16:19:29 +0100 (Sat, 02 Apr 2011)

Log message (8 lines):
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.

Modified files:
U   puzzles/loopy.c

Links:
http://svn.tartarus.org/sgt/?rev=9137&view=rev
http://svn.tartarus.org/sgt/puzzles/loopy.c?rev=9137&r1=9136&r2=9137



More information about the tartarus-commits mailing list