VoronoiDiagram constructor

VoronoiDiagram(
  1. int generatorCapacity
)

Implementation

VoronoiDiagram(int generatorCapacity) {
  _generatorBuffer = new List<VoronoiGenerator>(generatorCapacity);
  for (int i = 0; i < generatorCapacity; i++) {
    _generatorBuffer[i] = new VoronoiGenerator();
  }
  _generatorCount = 0;
  _countX = 0;
  _countY = 0;
  _diagram = null;
}