This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/integrations/Unity3D/Assets/OBJ-IO/Plugins/Mesh/OBJ/OBJFaceVertex.cs

25 lines
848 B
C#
Raw Normal View History


public class OBJFaceVertex
{
//------------------------------------------------------------------------------------------------------------
public int m_VertexIndex = -1;
public int m_UVIndex = -1;
public int m_UV2Index = -1;
public int m_NormalIndex = -1;
public int m_ColorIndex = -1;
public override int GetHashCode()
{
return m_VertexIndex ^ m_UVIndex ^ m_UV2Index ^ m_NormalIndex ^ m_ColorIndex;
}
public override bool Equals(object obj)
{
OBJFaceVertex faceVertex = (OBJFaceVertex)obj;
return m_VertexIndex == faceVertex.m_VertexIndex
&& m_UVIndex == faceVertex.m_UVIndex
&& m_UV2Index == faceVertex.m_UV2Index
&& m_NormalIndex == faceVertex.m_NormalIndex
&& m_ColorIndex == m_ColorIndex;
}
}