Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible maxrects optimizations? #6

Open
3b opened this issue Aug 7, 2024 · 0 comments
Open

possible maxrects optimizations? #6

3b opened this issue Aug 7, 2024 · 0 comments

Comments

@3b
Copy link
Member

3b commented Aug 7, 2024

After splitting free rects, it needs to check for free rects contained in other rects and remove them. Currently it filters out rects that don't touch the newly placed rect, and then checks all the other rects after splitting against each other.
Instead of having a single new set, it might be better to have a separate set for each face of the placed rect, since free rects touching different faces can't contain each other?
Also, with a strict bottom-left placement, I'm not sure the rects touching the bottom and left faces can have any new redundant rects, so if that is true it might be able to skip those 2 sets completely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant