| 1 |
\documentclass[a4paper]{article} |
| 2 |
%\usepackage{fontspec} |
| 3 |
%\setmainfont{Libertinus Serif} |
| 4 |
%\usepackage{mathtools,unicode-math} |
| 5 |
%\setmainfont{Libertinus Math} |
| 6 |
\usepackage[margin=2.2cm]{geometry} |
| 7 |
\usepackage[dvipsnames]{xcolor} |
| 8 |
\usepackage{luacode} |
| 9 |
\usepackage{../luahyperbolic} |
| 10 |
\usepackage{hyperref} |
| 11 |
\begin{document} |
| 12 |
\title{Triangle groups and tilings} |
| 13 |
\author{Damien Mégy} |
| 14 |
\date{} |
| 15 |
\maketitle |
| 16 |
\pagestyle{empty} |
| 17 |
\thispagestyle{empty} |
| 18 |
Drawn with the \textbf{\textsf{luahyperbolic}} package. (\url{https://github.com/dmegy/luahyperbolic}) |
| 19 |
|
| 20 |
|
| 21 |
\subsection*{Triangle tilings of type $(p,\infty,\infty)$ for $p\leq 6$} |
| 22 |
|
| 23 |
\begin{luacode*} |
| 24 |
local PI = math.pi |
| 25 |
local N=6 |
| 26 |
local DEPTH=8 |
| 27 |
for k=2,N do |
| 28 |
tex.print("\\begin{tikzpicture}[scale=1.5]") |
| 29 |
tex.print("\\begin{scope}") |
| 30 |
tex.print("\\draw[very thick] (0,0) circle (1);\\clip (0,0) circle (1);") |
| 31 |
local A, B, C = hyper.triangleWithAngles(PI/k,0, 0) |
| 32 |
hyper.fillTilingFromTriangle(A, B, C, DEPTH) |
| 33 |
hyper.drawPolygon(A, B, C, "thick, red") |
| 34 |
tex.print("\\end{scope}") |
| 35 |
tex.print(string.format("\\draw (0,-1.2) node {$(%d, \\infty, \\infty)$} ;", k)) |
| 36 |
tex.print("\\end{tikzpicture}") |
| 37 |
tex.print("~") |
| 38 |
end |
| 39 |
\end{luacode*} |
| 40 |
|
| 41 |
|
| 42 |
\subsection*{Triangle tilings of type $(p,q,\infty)$ for $2\leq p\leq q \leq 5$} |
| 43 |
|
| 44 |
\begin{luacode*} |
| 45 |
local PI = math.pi |
| 46 |
local N=5 |
| 47 |
local DEPTH=8 |
| 48 |
for k=2,N do |
| 49 |
for l=k, N do |
| 50 |
if 1/k+1/l <1 then |
| 51 |
tex.print("\\begin{tikzpicture}[scale=1.5]") |
| 52 |
tex.print("\\begin{scope}") |
| 53 |
tex.print("\\draw[very thick] (0,0) circle (1);\\clip (0,0) circle (1);") |
| 54 |
local A, B, C = hyper.triangleWithAngles(PI/k, PI/l, 0) |
| 55 |
hyper.fillTilingFromTriangle(A, B, C, DEPTH, "even odd rule") |
| 56 |
hyper.drawPolygon(A, B, C, "thick, red") |
| 57 |
tex.print("\\end{scope}") |
| 58 |
tex.print(string.format("\\draw (0,-1.2) node {$(%d, %d, \\infty)$} ;", k, l)) |
| 59 |
tex.print("\\end{tikzpicture}") |
| 60 |
tex.print("~") |
| 61 |
end |
| 62 |
end |
| 63 |
end |
| 64 |
\end{luacode*} |
| 65 |
|
| 66 |
|
| 67 |
\subsection*{Triangle tilings of type $(p,q,r)$ for $2\leq p\leq q\leq r \leq 6$} |
| 68 |
|
| 69 |
\begin{luacode*} |
| 70 |
local PI = math.pi |
| 71 |
local N=6 |
| 72 |
for k=2,N do |
| 73 |
for l=k, N do |
| 74 |
for m=l,N do |
| 75 |
local t = 1/k+1/l +1/m |
| 76 |
if t<0.99 then |
| 77 |
local DEPTH=1+math.round(12*t) |
| 78 |
tex.print("\\begin{tikzpicture}[scale=1.5]") |
| 79 |
tex.print("\\begin{scope}") |
| 80 |
tex.print("\\draw[very thick] (0,0) circle (1);\\clip (0,0) circle (1);") |
| 81 |
local A, B, C = hyper.triangleWithAngles(PI/k, PI/l, PI/m) |
| 82 |
hyper.fillTilingFromTriangle(A, B, C, DEPTH, "even odd rule") |
| 83 |
hyper.drawPolygon(A, B, C, "thick, red") |
| 84 |
tex.print("\\end{scope}") |
| 85 |
tex.print(string.format("\\draw (0,-1.2) node {$(%d, %d, %d)$} ;", k, l,m)) |
| 86 |
tex.print("\\end{tikzpicture}") |
| 87 |
tex.print("~") |
| 88 |
end |
| 89 |
end |
| 90 |
end |
| 91 |
end |
| 92 |
\end{luacode*} |
| 93 |
|
| 94 |
|
| 95 |
\end{document} |