void GenerateVoxelMeshData() { _vertices = new List <Vector3>(); _tirangles = new List <int>(); for (int y = 0; y < _data.Height; y++) { for (int z = 0; z < _data.Depth; z++) { for (int x = 0; x < _data.Width; x++) { if (!_data.IsCellVisible(x, y, z)) { continue; } GenerateCubeMeshData(x, y, z); } } } }