void GenerateVoxel3Mesh(VoxelData data) { verticies = new List <Vector3>(); triangles = new List <int>(); for (int z = 0; z < data.Depth; z++) { for (int x = 0; x < data.Width; x++) { for (int y = 0; y < data.Height; y++) { if (data.Get3Cell(x, y, z) == 0) { continue; } Make3Cube(adjScale, new Vector3((float)x * scale, (float)y * scale, (float)z * scale), x, y, z, data); } } } }