public ElementsContour(ElementSequence elementSequence) { foreach (Node node in elementSequence.Nodes) { AddNode(node); } }
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); }