public void Add(VoxelMesh voxelMesh) { DefaultMesh.Add(voxelMesh.DefaultMesh); TexCoord3D.AddRange(voxelMesh.TexCoord3D); MaterialAmount.AddRange(voxelMesh.MaterialAmount); MaterialId.AddRange(voxelMesh.MaterialId); uint max = 0; if (VoxelId.Count > 0) { max = (uint)(VoxelId.Last() + 1); } foreach (var voxelId in voxelMesh.VoxelId) { VoxelId.Add(voxelId + max); } }
public override bool Equals(object obj) { VoxelId other = (VoxelId)obj; return(other.id.Equals(other.id)); }