public static void addPoints(Beam b, List<Point> p) { for (int i = 0; i < p.size() - 1; i++) { b.addLine(new Line(p.get(i), p.get(i + 1))); } }