Example #1
0
 /// <summary>
 /// Returns a value that indicates whether this instance and another <see cref="Mesh"/> are equal.
 /// </summary>
 /// <param name="other">The other <see cref="Mesh"/>.</param>
 /// <returns><see langword="true"/> if the two <see cref="Mesh"/> are equals; otherwise, <see langword="false"/>.</returns>
 public bool Equals(Mesh other) =>
 _hashcode == other._hashcode &&
 Material.Equals(other.Material) &&
 Vertices.SequenceEqual(other.Vertices) &&
 UVs.SequenceEqual(other.UVs) &&
 Normals.SequenceEqual(other.Normals) &&
 Faces.SequenceEqual(other.Faces) &&
 Tangents.SequenceEqual(other.Tangents) &&
 Bitangents.SequenceEqual(other.Bitangents) &&
 Colors.SequenceEqual(other.Colors) &&
 Bones.SequenceEqual(other.Bones);