Return the n biggest rectangles
First of all, many thanks for your project which help me a lot in my work. And I have a question that, is there any way to find the largest horizon rectangle inside a shape? I need a horizon rectangle to put some words in it.
Thanks, Mi
Can you make a sketch to describe what excatly you need ?
Can you make a sketch to describe what excatly you need ?
Yes. Actually I am trying to find a large horizontal "empty" area outside the main object(like the man in below picture) to put some words in it.
In this figure, the blue rectangle is the largest rectangle computed by lir, it seems too narrow if I put some words in it. So in this example, maybe the green rectangle( the largest horizontal rectangle) which is indeed smaller than blue one is better for my needs.
Thanks a lot.
I think there should be the possibility to return multiple rectangles ordered by size
Yes, that will be great.
I would love this as well. As the reporter said, having the widest available rectangle is very useful for finding where text can be placed. If a list of rectangles is returned I imagine you don't even really need to sort them, the caller can sift through them to find the widest themselves.