private void CheckSegs(DrawContext dc, CadLayer layer, CadFigure fig) { for (int i = 0; i < fig.SegmentCount; i++) { FigureSegment seg = fig.GetFigSegmentAt(i); CheckSeg(dc, layer, seg); } }