public CellPlacementRasterPolicy(float cellSize, CellToHeightsMap heightMap, RasterVolumes volumes)
        {
            _cellSize   = cellSize;
            _heightsMap = heightMap;
            _volumes    = volumes;

            var volBounds = volumes.GetVolumeBounds(cellSize);

            _volumeCenter     = volBounds.Center;
            _volumeHalfExtent = volBounds.HalfExtent;
        }
Ejemplo n.º 2
0
 public VolumeCellRaster(RasterSettings settings)
 {
     _settings = settings;
     _volumes  = new RasterVolumes();
 }