diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-04-02 15:19:29 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-04-02 15:19:29 +0000 |
| commit | 3c26b651a690ae35879afeaae1a1ab831ddbfd63 (patch) | |
| tree | 666937bddbe2f4dedef75f456b38b8acb0085f76 /map.c | |
| parent | 86f3385d3d669e5561b3c5f272e8695e496da0cf (diff) | |
| download | puzzles-3c26b651a690ae35879afeaae1a1ab831ddbfd63.zip puzzles-3c26b651a690ae35879afeaae1a1ab831ddbfd63.tar.gz puzzles-3c26b651a690ae35879afeaae1a1ab831ddbfd63.tar.bz2 puzzles-3c26b651a690ae35879afeaae1a1ab831ddbfd63.tar.xz | |
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.
[originally from svn r9137]
Diffstat (limited to 'map.c')
0 files changed, 0 insertions, 0 deletions