Exemple #1
0
        private void InitializeCells()
        {
            if (_rootCell != null)
            {
                throw new InvalidOperationException("Duplicated initialization call.");
            }
            if (GrowN < 1)
            {
                throw new InvalidOperationException("A value greater than 0 for grow exponent expected.");
            }

            var rootNode     = new NOctNode(GrowN);
            var rootCellSize = rootNode.DimensionalChildCapacity * LeafCellSize;

            _rootCell = new NOctCell(GrowN, transform.position, rootCellSize);
        }
Exemple #2
0
 private void DrawCellGizmo(NOctCell cell)
 {
 }