private void GenerateBoundarySegments(int LElements, int HElements) { boundarySegments.Clear(); foreach(Edge edge in _rectangle.Edges) { List<FiniteElementNode> nodes = GetNodesOnEdge(edge); int segmentsCount = nodes.Count - 1; for (int i = 0; i < segmentsCount; i++) { FiniteElementRectangleEdge FiniteElementRectangleEdge = new FiniteElementRectangleEdge(nodes[i], nodes[i + 1]); AddBoundarySegment(FiniteElementRectangleEdge, edge); } } }
protected void AddBoundarySegment(FiniteElementRectangleEdge FiniteElementRectangleEdge, Edge edge) { boundarySegments.Add(new KeyValuePair<FiniteElementRectangleEdge, Edge>(FiniteElementRectangleEdge, edge)); }