示例#1
0
 public ElementsContour(ElementSequence elementSequence)
 {
     foreach (Node node in elementSequence.Nodes)
     {
         AddNode(node);
     }
 }
示例#2
0
 private bool isContourFree(ElementSequence contour)
 {
     foreach (ElementSequence checkContour in Contours.Where(i => i.Nodes.Length == contour.Count))
     {
         int i = -1;
         while (++i < contour.Count)
         {
             if (!checkContour.Nodes.Contains(contour.Nodes[i]))
             {
                 break;
             }
         }
         if (i == contour.Count)
         {
             return(false);
         }
     }
     return(true);
 }