C# 클래스 R3.Geometry.Tiling

파일 보기 프로젝트 열기: roice3/Honeycombs 1 사용 예제들

공개 메소드들

메소드 설명
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