C# Класс R3.Geometry.Tiling

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

Clip() публичный Метод

Clips the tiling to the interior of a circle.
public Clip ( Circle c, bool interior = true ) : void
c Circle
interior bool
Результат void

CreateBaseTile() публичный статический Метод

public static CreateBaseTile ( TilingConfig config ) : Tile
config TilingConfig
Результат Tile

Generate() публичный Метод

Generate ourselves from a tiling config.
public Generate ( TilingConfig config ) : void
config TilingConfig
Результат void

GenerateInternal() публичный Метод

public GenerateInternal ( TilingConfig config, Polytope projection = Polytope.Projection.FaceCentered ) : void
config TilingConfig
projection Polytope
Результат void

MakeDualTilings() публичный статический Метод

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
Результат void

NewTileAfterReflect() публичный Метод

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
Результат bool

Tiling() публичный Метод

public Tiling ( ) : System.Collections.Generic
Результат System.Collections.Generic