Triangular neighbourhood: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Created page with "{{Glossary}} The '''triangular neighbourhood''' is the set of all cells that are adjacent to the region of interest in a grid tiled with triangles (the region of interest..."
 
No edit summary
 
(48 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Glossary}}
{{Glossary}}
The '''triangular neighbourhood''' is the set of all [[cell]]s that are adjacent to the region of interest in a grid tiled with triangles (the region of interest itself may or may not be considered part of the triangular neighbourhood, depending on context).
The '''triangular neighbourhood''' is the set of all [[cell]]s that are adjacent to the region of interest in [[Triangular tiling|a grid tiled with triangles]] (the region of interest itself may or may not be considered part of the triangular neighbourhood, depending on context).


The triangular neigbourhood can either refer to the 12-cell triangular Moore neighbourhood or 3-cell triangular von neumann neighbourhood.
== Triangular neighbourhoods ==
The triangular neighbourhood can either refer to:


The triangular tiling shares its symmetries with that of the hexagonal tiling.
{| class="wikitable" style="text-align:center"
|
| {{Nbh-demo |r = 1 |n = @1aL |z = 8 |w = 100 |h = 100}}<br>Edges<br>(von Neumann)<br>3 cells
| {{Nbh-demo |r = 2 |n = @02a540L |z = 8 |w = 100 |h = 100}}<br>Outer<br>6 cells
| {{Nbh-demo |r = 2 |n = @02bdc0L |z = 8 |w = 100 |h = 100}}<br>Biohazard<br>9 cells
|-
| {{Nbh-demo |r = 2 |n = @010220L |z = 8 |w = 100 |h = 100}}<br>Radiation<br>3 cells
| {{Nbh-demo |r = 2 |n = @011aa0L |z = 8 |w = 100 |h = 100}}<br>Inner<br>6 cells
| {{Nbh-demo |r = 2 |n = @03a760L |z = 8 |w = 100 |h = 100}}<br>Vertices<br>9 cells
| {{Nbh-demo |r = 1 |n = L |z = 8 |w = 100 |h = 100}}<br>Triangular<br>(Moore)<br>12 cells
|}


==Software support==
== Software support ==
The triangular Moore neighbourhood is currently in testing for [[LifeViewer]] as of build 317. Triangular von Neumann support is on the backlog. Triangular tiling is dealt with using 2 states and the following neighbourhood on a square tiling:
[[LifeViewer]] natively supports the seven aforementioned triangular neighbourhoods using 2 states. For triangles pointing up the following neighbourhood is used on a square tiling:


[[File:Triangular neighbourhood (radius 1).png|150px]]
[[File:Emulated triangular Moore neighbourhood (range 1).png]]


Generations is also supported.
For triangles pointing down the above neighbourhood is flipped vertically.


TriLife.zip is available on Golly's online pattern archive, and simulates 2-state triangular outer-totalistic rule's using 4 states, dividing each square cell into two triangles.
B0 emulation, [[Alternating rule]]s and [[Generations]] are also supported.


==Symmetries==
In the birth/survival notation, Triangular rules are notated with an <tt><nowiki>L</nowiki></tt>, <tt><nowiki>LE</nowiki></tt>, <tt><nowiki>LV</nowiki></tt>, <tt><nowiki>LI</nowiki></tt>, <tt><nowiki>LO</nowiki></tt>, <tt><nowiki>LB</nowiki></tt> or <tt><nowiki>LR</nowiki></tt> suffix for Triangular, Triangular Edges, Triangular Vertices, Triangular Inner, Triangular Outer, Triangular Biohazard or Triangular Radiation neighbourhoods respectively (e.g. <tt><nowiki>B456/S34L</nowiki></tt>). X is used for 10, Y for 11 and Z for 12. This notation avoids conflicts with [[isotropic non-totalistic]] rules on the Moore neighbourhood. However, in [[higher-range outer-totalistic]] notation, only <tt>L</tt> is supported to follow N for Triangular; <tt>LE</tt>, <tt>LV</tt>, <tt>LI</tt>, <tt>LO</tt>, <tt>LB</tt> or <tt>LR</tt> should instead be replaced with weighted or custom neighbourhoods.<ref name="post137325" />
{{main|Symmetry}}
 
The triangular neighbourhood relies on a different grid than the [[Moore]] and [[von Neumann]] neighborhoods and thus features a different set of inherent symmetries when dealing with [[isotropic]] rules:
{{filename|TriLife.zip}} is available on Golly's online pattern archive,<ref>Golly's [https://github.com/gollygang/ruletablerepository online pattern archive]</ref> and simulates 2-state triangular outer-totalistic Moore rules using 4 states, dividing each square cell into two triangles. A is used for 10, B for 11 and C for 12.
 
[[Tim Hutton]]'s [[Fredkin]] replicator rule generation script also divides cells into two triangles, and uses T for triangular von Neumann and TM for triangular Moore.
 
== Symmetries ==
{{related|Static symmetry|Kinetic symmetry}}
The triangular tiling shares its symmetries with that of the hexagonal tiling, and thus features a different set of inherent symmetries than the [[Moore neighbourhood|Moore]] and [[Von Neumann neighbourhood|von Neumann]] neighbourhoods when dealing with [[isotropic]] rules:


* Asymmetric (C1, 8x32, 4x64, 2x128, 1x256)
* Asymmetric (C1, 8x32, 4x64, 2x128, 1x256)
Line 34: Line 51:
* D12
* D12


==See also==
== See also ==
* [[Neighbourhood]]
* [[Neighbourhood]]
** [[Hexagonal neighbourhood]]
** [[Hexagonal neighbourhood]]
Line 40: Line 57:
** [[Moore neighbourhood]]
** [[Moore neighbourhood]]
** [[von Neumann neighbourhood]]
** [[von Neumann neighbourhood]]
** [[Euclidean neighbourhood]]
* [[Triangular tiling]]
** [[Circular neighbourhood]]
* [[Zone of influence]]
* [[Zone of influence]]


==External links==
== References ==
{{LinkWikipedia|Triangular_tiling|name=Triangular tiling}}
<references>
<ref name="post137325">{{LinkForumThread
|format    = ref
|p          = 137325
|title      = Re: Pattern viewer for forum threads
|author    = Chris Rowett
|date      = November 5, 2021
}}</ref>
</references>
 
== External links ==
* {{LinkForumThread|format=ref|t=4272|title=Triangular neighbourhood rules}}
* {{LinkWikipedia|Triangular_tiling|name=Triangular tiling}}


[[Category:Neighbourhoods]] [[Category:Triangular rules| ]]
__NOTOC__
__NOTOC__

Latest revision as of 02:57, 4 July 2026

The triangular neighbourhood is the set of all cells that are adjacent to the region of interest in a grid tiled with triangles (the region of interest itself may or may not be considered part of the triangular neighbourhood, depending on context).

Triangular neighbourhoods

The triangular neighbourhood can either refer to:

x=1, y = 1, rule = R1,C0,S,B1,N@1aL o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Edges
(von Neumann)
3 cells

x=1, y = 1, rule = R2,C0,S,B1,N@02a540L o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Outer
6 cells

x=1, y = 1, rule = R2,C0,S,B1,N@02bdc0L o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Biohazard
9 cells

x=1, y = 1, rule = R2,C0,S,B1,N@010220L o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Radiation
3 cells

x=1, y = 1, rule = R2,C0,S,B1,N@011aa0L o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Inner
6 cells

x=1, y = 1, rule = R2,C0,S,B1,N@03a760L o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Vertices
9 cells

x=1, y = 1, rule = R1,C0,S,B1,NL o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 8 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]


Triangular
(Moore)
12 cells

Software support

LifeViewer natively supports the seven aforementioned triangular neighbourhoods using 2 states. For triangles pointing up the following neighbourhood is used on a square tiling:

For triangles pointing down the above neighbourhood is flipped vertically.

B0 emulation, Alternating rules and Generations are also supported.

In the birth/survival notation, Triangular rules are notated with an L, LE, LV, LI, LO, LB or LR suffix for Triangular, Triangular Edges, Triangular Vertices, Triangular Inner, Triangular Outer, Triangular Biohazard or Triangular Radiation neighbourhoods respectively (e.g. B456/S34L). X is used for 10, Y for 11 and Z for 12. This notation avoids conflicts with isotropic non-totalistic rules on the Moore neighbourhood. However, in higher-range outer-totalistic notation, only L is supported to follow N for Triangular; LE, LV, LI, LO, LB or LR should instead be replaced with weighted or custom neighbourhoods.[1]

TriLife.zip is available on Golly's online pattern archive,[2] and simulates 2-state triangular outer-totalistic Moore rules using 4 states, dividing each square cell into two triangles. A is used for 10, B for 11 and C for 12.

Tim Hutton's Fredkin replicator rule generation script also divides cells into two triangles, and uses T for triangular von Neumann and TM for triangular Moore.

Symmetries

See also: Static symmetry, Kinetic symmetry

The triangular tiling shares its symmetries with that of the hexagonal tiling, and thus features a different set of inherent symmetries than the Moore and von Neumann neighbourhoods when dealing with isotropic rules:

  • Asymmetric (C1, 8x32, 4x64, 2x128, 1x256)
  • C2_1
  • C2_4
  • C3_1
  • C3_3
  • C6
  • D2_xo
  • D2_x
  • D4_x1
  • D4_x4
  • D6_1
  • D6_1o
  • D6_3
  • D12

See also

References

  1. ↑ Chris Rowett (November 5, 2021). Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums
  2. ↑ Golly's online pattern archive