private IEnumerable<Shape> ShapesInside(BoundingBox<Coord> bbox, Shape panel = null) { foreach (var shape in _doc.Shapes) { if (shape != panel && bbox.Contains(shape.BBox)) yield return shape; } }