New grid type: the trihexagonal tiling, or 'kagome lattice'.

Regular hexagons and equilateral triangles in strict alternation, with
two of each interleaved around each vertex.
https://en.wikipedia.org/wiki/Trihexagonal_tiling

Thanks to Michael Quevillon for the patch.
This commit is contained in:
Simon Tatham
2017-11-18 15:16:40 +00:00
parent 69773d855b
commit 8af0c29615
4 changed files with 102 additions and 1 deletions

1
grid.h
View File

@ -100,6 +100,7 @@ typedef struct grid {
A(SNUBSQUARE,snubsquare) \
A(CAIRO,cairo) \
A(GREATHEXAGONAL,greathexagonal) \
A(KAGOME,kagome) \
A(OCTAGONAL,octagonal) \
A(KITE,kites) \
A(FLORET,floret) \