C# Class R3.Geometry.Tiling

ファイルを表示 Open project: roice3/Honeycombs Class Usage Examples

Public Methods

Method Description
Clip ( Circle c, bool interior = true ) : void

Clips the tiling to the interior of a circle.

CreateBaseTile ( TilingConfig config ) : Tile
Generate ( TilingConfig config ) : void

Generate ourselves from a tiling config.

GenerateInternal ( TilingConfig config, Polytope projection = Polytope.Projection.FaceCentered ) : void
MakeDualTilings ( Tiling &tiling1, Tiling &tiling2, int p, int q ) : void

A static helper to generate two dual tilings.

{p,q} will have a vertex at the center.{q,p} will have its center at the center.

NewTileAfterReflect ( Tile t, Segment s, bool>.Dictionary completed ) : bool

This will return whether we'll be a new tile after reflecting through a segment. This allows us to do the check without having to do all the work of reflecting the entire tile.

Tiling ( ) : System.Collections.Generic

Private Methods

Method Description
FillOutIncidences ( ) : void

Fill out all the incidence information. If performance became an issue, we could do some of this at tile generation time.

FillOutIsometries ( Tile home, List tiles, Geometry g ) : void

This will fill out all the tiles with the isometry that will take them back to a home tile.

ReflectRecursive ( List tiles, bool>.Dictionary completed ) : void
TransformAndAdd ( Tile tile ) : bool

Will clone the tile, transform it and add it to our tiling.

Method Details

Clip() public method

Clips the tiling to the interior of a circle.
public Clip ( Circle c, bool interior = true ) : void
c Circle
interior bool
return void

CreateBaseTile() public static method

public static CreateBaseTile ( TilingConfig config ) : Tile
config TilingConfig
return Tile

Generate() public method

Generate ourselves from a tiling config.
public Generate ( TilingConfig config ) : void
config TilingConfig
return void

GenerateInternal() public method

public GenerateInternal ( TilingConfig config, Polytope projection = Polytope.Projection.FaceCentered ) : void
config TilingConfig
projection Polytope
return void

MakeDualTilings() public static method

A static helper to generate two dual tilings.
{p,q} will have a vertex at the center. {q,p} will have its center at the center.
public static MakeDualTilings ( Tiling &tiling1, Tiling &tiling2, int p, int q ) : void
tiling1 Tiling
tiling2 Tiling
p int
q int
return void

NewTileAfterReflect() public method

This will return whether we'll be a new tile after reflecting through a segment. This allows us to do the check without having to do all the work of reflecting the entire tile.
public NewTileAfterReflect ( Tile t, Segment s, bool>.Dictionary completed ) : bool
t Tile
s Segment
completed bool>.Dictionary
return bool

Tiling() public method

public Tiling ( ) : System.Collections.Generic
return System.Collections.Generic