public Map(int _width, int _height = 0, int _depth = 0) { if (_height == 0) { _height = _width; } if (_depth == 0) { _depth = _width; } width = _width; height = _height; depth = _depth; cubeGrid = new Grid3i(width, height, depth); cubeGridCopy = new Grid3i(width, height, depth); marchingGrid = new Grid3f(width + 1, height + 1, depth + 1); marchingGridCopy = new Grid3f(width + 1, height + 1, depth + 1); }
public ClusterMap(int _width, int _height = 0, int _depth = 0) { if (_height == 0) { _height = _width; } if (_depth == 0) { _depth = _width; } width = _width; height = _height; depth = _depth; cubeGrid = new Grid3i(width, height, depth); cubeGridCopy = new Grid3i(width, height, depth); marchingGrid = new Grid3f(width + 1, height + 1, depth + 1); marchingGridCopy = new Grid3f(width + 1, height + 1, depth + 1); chunkList = new List <Chunk>(); }
public void CopyTo(ref Grid3i copyTo) { data.CopyTo(copyTo.data, 0); }