Tiling

io.github.scala_tessella.tessella.Tiling
See theTiling companion class

Companion object for Tiling

Attributes

Companion
class
Graph
Supertypes
trait Quadratic
trait Layered
trait Uni5Hex
trait Uni4Hex
trait UniHex
trait UniTriangle
trait Reticulate
class Object
trait Matchable
class Any
Show all
Self type
Tiling.type

Members list

Value members

Concrete methods

def empty: Tiling

The empty tiling

The empty tiling

Attributes

def fromFullVertex(fullVertex: FullVertex): Tiling

A tiling made of a FullVertex

A tiling made of a FullVertex

Attributes

def fromPolygon(sides: Polygon | Int): Tiling

A tiling made of the edges of the given polygon

A tiling made of the edges of the given polygon

Value parameters

sides

polygon or its number of sides

Attributes

Throws
IllegalArgumentException

if sides <= 2

def fromVertex(vertex: Vertex): Tiling

A tiling made of the edges of the given adjacent polygons

A tiling made of the edges of the given adjacent polygons

Value parameters

vertex

a partial or full vertex

Attributes

def maybe(edges: List[Edge]): Either[String, Tiling]

Tries to create a Tiling with validation.

Tries to create a Tiling with validation.

Value parameters

edges

list of edges

Attributes

Returns

Either the tiling or a failure message

def maybe(edges: Edge*): Either[String, Tiling]

Tries to create a Tiling with validation.

Tries to create a Tiling with validation.

Value parameters

edges

sequence of edges

Attributes

Returns

Either the tiling or a failure message

Inherited methods

def hexagonRect(width: Int, height: Int)(f: (Int, Int) => Boolean): Either[String, Tiling]

Creates a rectangular net of hexagons and fill some of them with six triangles according to function

Creates a rectangular net of hexagons and fill some of them with six triangles according to function

Attributes

Inherited from:
Reticulate
def pattern33344_2x3366_2x3446(width: Int, height: Int): Either[String, Tiling]

uniform tessellation (3₃.4₂; [2x 3₂.6₂]; [2x 3.4₂.6])

uniform tessellation (3₃.4₂; [2x 3₂.6₂]; [2x 3.4₂.6])

Attributes

See also
Inherited from:
Layered
def pattern33344_3366_3446(width: Int, height: Int): Either[String, Tiling]

uniform tessellation (3₃.4₂; 3₂.6₂; 3.4₂.6) (t=5, e=8)

uniform tessellation (3₃.4₂; 3₂.6₂; 3.4₂.6) (t=5, e=8)

Attributes

See also
Inherited from:
Layered
def pattern_2x333333_2x33336_3366(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [2x(3₆);2x(3₄.6);(3₂.6₂)]

5-uniform tessellation [2x(3₆);2x(3₄.6);(3₂.6₂)]

Attributes

Inherited from:
Uni5Hex
def pattern_2x333333_33336(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [2x(3₆);(3₄.6)] (t=3, e=4)

3-uniform tessellation [2x(3₆);(3₄.6)] (t=3, e=4)

Attributes

Inherited from:
UniHex
def pattern_2x333333_33336_2x3366(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [2x(3₆);(3₄.6);2x(3₂.6₂)]

5-uniform tessellation [2x(3₆);(3₄.6);2x(3₂.6₂)]

Attributes

Inherited from:
Uni5Hex
def pattern_2x333333_33336_3366(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [2x(3₆);(3₄.6);(3₂.6₂)]

4-uniform tessellation [2x(3₆);(3₄.6);(3₂.6₂)]

Attributes

Inherited from:
UniTriangle
def pattern_2x333333_33336_3366_666(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [2x(3₆);(3₄.6);(3₂.6₂);(6₃)]

5-uniform tessellation [2x(3₆);(3₄.6);(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_2x33344_2x3446_3636(width: Int, height: Int): Either[String, Tiling]
def pattern_2x33344_2x3446_3636_alt(width: Int, height: Int): Either[String, Tiling]
def pattern_2x33344_33434(width: Int, height: Int): Either[String, Tiling]
def pattern_31212(side: Int): Either[String, Tiling]

Grows a (3.12*2) hexoid of given side

Grows a (3.12*2) hexoid of given side

Value parameters

side

length in dodecagons (approx. ???)

Attributes

Note

the size in polygons is 9x^2-9x+1 where x = side

Inherited from:
Quadratic
def pattern_333333(side: Int): Either[String, Tiling]

Grows a (3*6) hexagon of given side

Grows a (3*6) hexagon of given side

Value parameters

side

length in units

Attributes

Note

the size in polygons is 6x^2 where x = side

Inherited from:
Quadratic
def pattern_333333(width: Int, height: Int): Either[String, Tiling]

Creates a rectangular reticulate of width by height triangles

Creates a rectangular reticulate of width by height triangles

Value parameters

height

size must be greater then 0

width

size must be even and greater than 0

Attributes

Inherited from:
Reticulate
def pattern_333333_2x33336_3366(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);2x(3₄.6);(3₂.6₂)]

4-uniform tessellation [(3₆);2x(3₄.6);(3₂.6₂)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_2x3366_2x666(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);2x(3₂.6₂);2x(6₃)]

5-uniform tessellation [(3₆);2x(3₂.6₂);2x(6₃)]

Attributes

See also
Inherited from:
Uni5Hex
def pattern_333333_2x3366_2x666_alt(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);2x(3₂.6₂);2x(6₃)]

5-uniform tessellation [(3₆);2x(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_2x3366_4x666(width: Int, height: Int): Either[String, Tiling]

7-uniform tessellation [(3₆);2x(3₂.6₂);4x(6₃)]

7-uniform tessellation [(3₆);2x(3₂.6₂);4x(6₃)]

Attributes

Inherited from:
UniHex
def pattern_333333_2x3366_666(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);2x(3₂.6₂);(6₃)]

4-uniform tessellation [(3₆);2x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_2x3366_666_alt(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);2x(3₂.6₂);(6₃)]

4-uniform tessellation [(3₆);2x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_33336(width: Int, height: Int): Either[String, Tiling]

2-uniform tessellation [(3₆);(3₄.6)] (t=3, e=3)

2-uniform tessellation [(3₆);(3₄.6)] (t=3, e=3)

Attributes

Note

obtainable also with a triangleNetVariant(_, )( % 3 == 0 && _ % 3 == 0)

Inherited from:
UniHex
def pattern_333333_33336_2x3366_666(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);(3₄.6);2x(3₂.6₂);(6₃)]

5-uniform tessellation [(3₆);(3₄.6);2x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_33336_2x3366_666_alt(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);(3₄.6);2x(3₂.6₂);(6₃)]

5-uniform tessellation [(3₆);(3₄.6);2x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_33336_3366(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [(3₆);(3₄.6);(3₂.6₂)] (t=5, e=8)

3-uniform tessellation [(3₆);(3₄.6);(3₂.6₂)] (t=5, e=8)

Attributes

Inherited from:
UniHex
def pattern_333333_33336_3366_2x666(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_33336_3366_2x666_alt(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_33336_3366_2x666_alt2(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

5-uniform tessellation [(3₆);(3₄.6);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_33336_3366_666(width: Int, height: Int): Either[String, Tiling]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_33336_3366_666_alt(width: Int, height: Int): Either[String, Tiling]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_33336_3366_666_alt2(width: Int, height: Int): Either[String, Tiling]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

4-archimedean tessellation [(3₆);(3₄.6);(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_33336_3366_alt(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [(3₆);(3₄.6);(3₂.6₂)] (t=3, e=5)

3-uniform tessellation [(3₆);(3₄.6);(3₂.6₂)] (t=3, e=5)

Attributes

Inherited from:
UniHex
def pattern_333333_33336_3636(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [(3₆);(3₄.6);(3.6.3.6)] (t=5, e=6)

3-uniform tessellation [(3₆);(3₄.6);(3.6.3.6)] (t=5, e=6)

Attributes

Inherited from:
UniTriangle
def pattern_333333_33336_alt(width: Int, height: Int): Either[String, Tiling]

2-uniform tessellation [(3₆);(3₄.6)] (t=5, e=7)

2-uniform tessellation [(3₆);(3₄.6)] (t=5, e=7)

Attributes

Inherited from:
UniTriangle
def pattern_333333_3366(width: Int, height: Int): Either[String, Tiling]

2-uniform tessellation [(3₆);(3₂.6₂)] (t=2, e=3)

2-uniform tessellation [(3₆);(3₂.6₂)] (t=2, e=3)

Attributes

Inherited from:
UniHex
def pattern_333333_3366_2x666(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_3366_2x666_alt(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

Attributes

See also
Inherited from:
Uni4Hex
def pattern_333333_3366_2x666_alt2(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_3366_2x666_alt3(width: Int, height: Int): Either[String, Tiling]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

4-uniform tessellation [(3₆);(3₂.6₂);2x(6₃)]

Attributes

Inherited from:
Uni4Hex
def pattern_333333_3366_666(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [(3₆);(3₂.6₂);(6₃)] (t=2, e=3)

3-uniform tessellation [(3₆);(3₂.6₂);(6₃)] (t=2, e=3)

Attributes

Inherited from:
UniHex
def pattern_333333_3x3366_666(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);3x(3₂.6₂);(6₃)]

5-uniform tessellation [(3₆);3x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_3x3366_666_alt(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [(3₆);3x(3₂.6₂);(6₃)]

5-uniform tessellation [(3₆);3x(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_333333_triangle(side: Int): Either[String, Tiling]

Creates a triangle of triangles of given side

Creates a triangle of triangles of given side

Attributes

Inherited from:
Reticulate
def pattern_33336(side: Int): Either[String, Tiling]

Grows a (3*4.6) hexoid of given side

Grows a (3*4.6) hexoid of given side

Value parameters

side

length is ???

Attributes

Note
Inherited from:
Quadratic
def pattern_33336(width: Int, height: Int): Either[String, Tiling]

Uniform Tessellation (3₄.6) (t=3, e=3)

Uniform Tessellation (3₄.6) (t=3, e=3)

Attributes

Inherited from:
Reticulate
def pattern_33336_33344_3446(width: Int, height: Int): Either[String, Tiling]

uniform tessellation (3₄.6; 3₃.4₂; 3.4₂.6)

uniform tessellation (3₄.6; 3₃.4₂; 3.4₂.6)

Attributes

See also
Inherited from:
Layered
def pattern_33336_3366(width: Int, height: Int): Either[String, Tiling]

2-uniform Tessellation (3₄.6; 3₂.6₂) (t=2, e=4)

2-uniform Tessellation (3₄.6; 3₂.6₂) (t=2, e=4)

Attributes

Inherited from:
Reticulate
def pattern_33344(side: Int): Either[String, Tiling]

Grows a (33.42) squaroid of given side

Grows a (33.42) squaroid of given side

Value parameters

side

length is ???

Attributes

Note

the size in polygons is 21x^2-27x+8 where x = side

Inherited from:
Quadratic
def pattern_33344(width: Int, height: Int): Either[String, Tiling]

uniform tessellation (3₃.4₂) (t=2, e=3)

uniform tessellation (3₃.4₂) (t=2, e=3)

Attributes

See also
Inherited from:
Layered
def pattern_33344_33434(width: Int, height: Int): Either[String, Tiling]

Attributes

Inherited from:
Reticulate
def pattern_33344_33434_4444(width: Int, height: Int): Either[String, Tiling]
def pattern_33434(side: Int): Either[String, Tiling]

Grows a (3₂.4.3.4) squaroid of given side

Grows a (3₂.4.3.4) squaroid of given side

Value parameters

side

length in

Attributes

Note

the size in polygons is 12x^2+16x+1 where x = side

Inherited from:
Quadratic
def pattern_33434(width: Int, height: Int): Either[String, Tiling]

Attributes

Inherited from:
Reticulate
def pattern_3366_3636_666(width: Int, height: Int): Either[String, Tiling]

3-uniform tessellation [(3₂.6₂);(3.6.3.6);(6₃)] (t=2, e=4)

3-uniform tessellation [(3₂.6₂);(3.6.3.6);(6₃)] (t=2, e=4)

Attributes

Inherited from:
UniTriangle
def pattern_3366_3636_666_alt(width: Int, height: Int): Either[String, Tiling]

3-uniform Tessellation (3₂.6₂; 3.6.3.6; 6₃) (t=4, e=5)

3-uniform Tessellation (3₂.6₂; 3.6.3.6; 6₃) (t=4, e=5)

Attributes

Inherited from:
Reticulate
def pattern_3446_4x3636(width: Int, height: Int): Either[String, Tiling]

uniform tessellation ([4x 3.6.3.6]; 3.4₂.6)

uniform tessellation ([4x 3.6.3.6]; 3.4₂.6)

Attributes

See also
Inherited from:
Layered
def pattern_3446_4x3636_alt(width: Int, height: Int): Either[String, Tiling]

uniform tessellation ([4x 3.6.3.6]; 3.4₂.6)

uniform tessellation ([4x 3.6.3.6]; 3.4₂.6)

Attributes

See also
Inherited from:
Layered
def pattern_3464(side: Int): Either[String, Tiling]

Grows a (3.4.6.4) hexoid of given side

Grows a (3.4.6.4) hexoid of given side

Value parameters

side

length in hexagons (approx. ? each)

Attributes

Note

the size in polygons is 18x^2-30x+13 where x = side

Inherited from:
Quadratic
def pattern_3636(side: Int): Either[String, Tiling]

Grows a (3.6.3.6) hexagon of given side

Grows a (3.6.3.6) hexagon of given side

Value parameters

side

length in hexagons (2x-1 units)

Attributes

Note

the size in polygons is 9x^2-9x+1 where x = side

Inherited from:
Quadratic
def pattern_3636(width: Int, height: Int): Either[String, Tiling]

uniform tessellation (3.6.3.6) (t=2, e=1)

uniform tessellation (3.6.3.6) (t=2, e=1)

Attributes

See also
Inherited from:
Layered
def pattern_3636_3366(width: Int, height: Int): Either[String, Tiling]

2-uniform Tessellation (3.6.3.6; 3₂.6₂) (t=2, e=3)

2-uniform Tessellation (3.6.3.6; 3₂.6₂) (t=2, e=3)

Attributes

Inherited from:
Reticulate
def pattern_3636_other(width: Int, height: Int): Either[String, Tiling]

Uniform tessellation (3.6.3.6) (t=2, e=1)

Uniform tessellation (3.6.3.6) (t=2, e=1)

Attributes

Inherited from:
Reticulate
def pattern_3x333333_33336_3366(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [3x(3₆);(3₄.6);(3₂.6₂)]

5-uniform tessellation [3x(3₆);(3₄.6);(3₂.6₂)]

Attributes

Inherited from:
Uni5Hex
def pattern_3x333333_33336_3366_alt(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [3x(3₆);(3₂.6₂);(6₃)]

5-uniform tessellation [3x(3₆);(3₂.6₂);(6₃)]

Attributes

Inherited from:
Uni5Hex
def pattern_4444(side: Int): Either[String, Tiling]

Grows a (4*4) square of given side

Grows a (4*4) square of given side

Value parameters

side

length in units

Attributes

Note

the size in polygons is x^2 where x = side

Inherited from:
Quadratic
def pattern_4444(width: Int, height: Int): Either[String, Tiling]

Creates a rectangular reticulate of width by height squares

Creates a rectangular reticulate of width by height squares

Value parameters

height

size must be greater then 0

width

size must be greater then 0

Attributes

Inherited from:
Reticulate
def pattern_4612(side: Int): Either[String, Tiling]

Grows a (4.6.12) hexoid of given side

Grows a (4.6.12) hexoid of given side

Value parameters

side

length in dodecagons (approx. ???)

Attributes

Note

the size in polygons is 18x^2-6x+1 where x = side

Inherited from:
Quadratic
def pattern_488(side: Int): Either[String, Tiling]

Grows a (4.8*2) squaroid of given side

Grows a (4.8*2) squaroid of given side

Value parameters

side

length in squares (approx. ? each)

Attributes

Note

the size in polygons is 4x^2-4x+1 where x = side

Inherited from:
Quadratic
def pattern_4x333333_33336(width: Int, height: Int): Either[String, Tiling]

5-uniform tessellation [4x(3₆);(3₄.6)]

5-uniform tessellation [4x(3₆);(3₄.6)]

Attributes

Inherited from:
Uni5Hex
def pattern_666(side: Int): Either[String, Tiling]

Grows a (6*3) hexoid of given side

Grows a (6*3) hexoid of given side

Value parameters

side

length in hexagons (approx. √3 each)

Attributes

Note

the size in polygons is 3x^2-3x+1 where x = side

Inherited from:
Quadratic
def pattern_666(width: Int, height: Int): Either[String, Tiling]

Creates a rectangular reticulate of width by height hexagons

Creates a rectangular reticulate of width by height hexagons

Value parameters

height

size must be greater then 0

width

size must be greater then 0

Attributes

Inherited from:
Reticulate
def pattern_666_trianguloid(side: Int): Either[String, Tiling]

Creates a trianguloid of hexagons of given side

Creates a trianguloid of hexagons of given side

Attributes

Inherited from:
Reticulate
def triangleRect(width: Int, height: Int)(f: (Int, Int) => Boolean): Either[String, Tiling]

Creates a rectangular net of triangles and empties some of them to hexagons according to function

Creates a rectangular net of triangles and empties some of them to hexagons according to function

Attributes

Inherited from:
Reticulate

Inherited fields

val height_gt_zero: Int => Either[String, Int]

Attributes

Inherited from:
Reticulate

Attributes

Inherited from:
Quadratic

Attributes

Inherited from:
Quadratic
val width_gt_zero: Int => Either[String, Int]

Attributes

Inherited from:
Reticulate