Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a hexagonal tiling pattern from a set of hexagonal Wang tiles
ResourceFunction["GenerateHexagonalWangTiling"][tiles, init, n] covers a n-layer hexagonal array with edge-matching Wang tiles, with init as the tile in the center. |
Generate a 1-layer hexagonal tiling with only one Hexagonal Wang tile:
In[1]:= |
Out[1]= |
Depict the tiling result:
In[2]:= |
Out[2]= |
Set the tile in the center:
In[3]:= |
Out[3]= |
Make a bigger patch with 4-layer surroundings:
In[4]:= |
Out[4]= |
Generate aperiodic hexagonal Wang tiling:
In[5]:= |
Out[5]= |
Give two different possible tilings using "Count":
In[6]:= |
Out[6]= |
Give all possible tilings:
In[7]:= |
Out[7]= |
The number order in the 3-layer grid of the tiles is shown as following:
In[8]:= |
Out[8]= |
Generate tilings of three different sets of aperiodic Hexagonal Wang tiles, all derived from the Hat tile:
In[9]:= |
Out[9]= |
This work is licensed under a Creative Commons Attribution 4.0 International License