Example #1
0
 public override bool EqualTo(EPMShape shape)
 {
     //For Triangle, the long hash can represent 1,000,000 different triangles, I think it is enough for mesh generating.
     if (GetLongHash() != shape.GetLongHash())
     {
         return(false);
     }
     return(true);
 }
Example #2
0
 public virtual bool EqualTo(EPMShape shape)
 {
     if (GetLongHash() != shape.GetLongHash())
     {
         return(false);
     }
     if (g_sortedIndexList.Count != shape.g_sortedIndexList.Count)
     {
         return(false);
     }
     for (int i = 0; i < g_sortedIndexList.Count; i++)
     {
         if (g_sortedIndexList[i] != shape.g_sortedIndexList[i])
         {
             return(false);
         }
     }
     return(true);
 }