2022-04-24 20:31:47 +00:00
|
|
|
## Arbitrary regular tiling
|
|
|
|
## You can change the values of sides and valence. Set sides to max to get infinite sides.
|
|
|
|
intslider(sides,6,3,MAX_EDGE+1)
|
|
|
|
intslider(valence,5,3,MAX_VALENCE)
|
2022-04-26 14:29:32 +00:00
|
|
|
|
|
|
|
# automatically choose e2, g2 or h2: arcmcurv returns negative for hyperbolic, positive for spherical
|
2022-04-24 20:31:47 +00:00
|
|
|
c2(arcmcurv(sides:^valence))
|
|
|
|
|
|
|
|
let(sides1=ifp(sides - MAX_EDGE, inf, sides))
|
|
|
|
|
|
|
|
distunit(arcmedge(sides1:^valence))
|
|
|
|
let(u = regangle(1, sides1))
|
2022-04-26 14:29:32 +00:00
|
|
|
# this copies u sides1 times, and also automatically sets the repeat value
|
|
|
|
# there is a special meaning where sides1 == inf
|
2022-04-24 20:31:47 +00:00
|
|
|
unittile(u,*sides1)
|
|
|
|
conway("(0 0)")
|