private void Intersctions(IList<ILine> lines, PolyLine<Line > poly ) { IList<IPoint> points;Node node2 ; Node node1; NodeLine nodeline ; foreach (ILine line in lines) { points = poly.PointsIntersects(line); if (points.Count == 2) { node1 = new Node(points[0].X, points[0].Y, points[0].Z); node2 = new Node(points[1].X, points[1].Y, points[1].Z); nodeline = new NodeLine(node1, node2); _presenter._creator.CreateBeam(nodeline); } } }