C# Class Assets.Scripts.Helpers.VoronoiHelper

显示文件 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_oe property

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

HorBorderSitesCnt public_oe property

public int HorBorderSitesCnt
return int

InternalSitesCountRange public_oe property

public int[] InternalSitesCountRange
return int[]

Resolution public_oe property

public int Resolution
return int

TilesLayer public_oe property

public int TilesLayer
return int

TilesSize public_oe property

public Vector2,UnityEngine TilesSize
return UnityEngine.Vector2

TilesTag public_oe property

public string TilesTag
return string

VertBorderSitesCnt public_oe property

public int VertBorderSitesCnt
return int