Inscribe rectangle #7158
Unanswered
petrasvestartas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the cgal has an algorithm to compute an inscribed rectangle for a convex/concave polygons similar to image below?
If yes, could you show an example, because there is no example for the "Largest Empty Rectangle".
The second example only works with points, is there any implementation with lines or polygons?
Does it mean that I must divide the polygon edges with points, if this is true, I do not know the division distance.
Update:
I did some tests below, after multiple trial an error process.
Key problems remains as a question for you:
https://doc.cgal.org/latest/Inscribed_areas/index.html
Assuming this image in the cgal documentation:
Test case - Question - What is wrong with the output?
this is the data-set:
Snippet:
Result for concave polygon:
Result for convex polygon:
Beta Was this translation helpful? Give feedback.
All reactions