function show_rects_in_secondary(fig_id,ref)
    data=get(groot,'UserData');
    for idx=1:length(data.rect)
        rect=data.rect(idx);
        if rect_in_cv_hull(rect,ref)
            display_rect_in_ref(fig_id,rect,ref);
        end
    end
end