private void UpdateAll() { Brush brush = new SolidBrush(pnlBackground.BackColor); G.FillRectangle(brush, 0, 0, B.Width, B.Height); for (int i = 0; i < Polygons.Count; i++) { Polygons[i].Draw(); } ClipPolygon.Draw(); }
private void ClipAndDraw() { if (curstep == 0) { Result = new GraphPolygon(B, G, new Pen(pnlCuttingLine.BackColor, 2)); } for (int i = 0; i < Polygons.Count - 1; i++) { if (PolygonClip(Polygons[i], ref Result, ClipPolygon)) { Result.Draw(); } } }