C# Class Assets.Scripts.Helpers.VoronoiHelper

Show file Open project: homoluden/fukami

Public Properties

Property Type Description
CachedBorders BenTools.Data.HashSet>.Dictionary
HorBorderSitesCnt int
InternalSitesCountRange int[]
Resolution int
TilesLayer int
TilesSize UnityEngine.Vector2
TilesTag string
VertBorderSitesCnt int

Public Methods

Method Description
CreateCellObject ( VoronoiCell cellData, int cellIndex, Transform parentTransform, Material meshMaterial ) : GameObject
CreateTileObject ( IntPoint tilePosition, int tileSeed, Transform parentTransform, Vector2 offset, Material materials ) : GameObject
GenerateTileCells ( int internalCellsCount ) : FortuneVoronoi.VoronoiCell[]

Private Methods

Method Description
VoronoiHelper ( ) : System.Collections

Method Details

CreateCellObject() public method

public CreateCellObject ( VoronoiCell cellData, int cellIndex, Transform parentTransform, Material meshMaterial ) : GameObject
cellData FortuneVoronoi.VoronoiCell
cellIndex int
parentTransform UnityEngine.Transform
meshMaterial UnityEngine.Material
return UnityEngine.GameObject

CreateTileObject() public method

public CreateTileObject ( IntPoint tilePosition, int tileSeed, Transform parentTransform, Vector2 offset, Material materials ) : GameObject
tilePosition FortuneVoronoi.Common.IntPoint
tileSeed int
parentTransform UnityEngine.Transform
offset UnityEngine.Vector2
materials UnityEngine.Material
return UnityEngine.GameObject

GenerateTileCells() public method

public GenerateTileCells ( int internalCellsCount ) : FortuneVoronoi.VoronoiCell[]
internalCellsCount int
return FortuneVoronoi.VoronoiCell[]

Property Details

CachedBorders public property

public Dictionary> CachedBorders
return BenTools.Data.HashSet>.Dictionary

HorBorderSitesCnt public property

public int HorBorderSitesCnt
return int

InternalSitesCountRange public property

public int[] InternalSitesCountRange
return int[]

Resolution public property

public int Resolution
return int

TilesLayer public property

public int TilesLayer
return int

TilesSize public property

public Vector2,UnityEngine TilesSize
return UnityEngine.Vector2

TilesTag public property

public string TilesTag
return string

VertBorderSitesCnt public property

public int VertBorderSitesCnt
return int