Skip to content

Bugs in edgy rect placement in updateBinSize()#56

Merged
soimy merged 2 commits into
soimy:masterfrom
JohannesHoffmann:55-Bugs-edgy-rectplacement-updateBinSize
Aug 27, 2025
Merged

Bugs in edgy rect placement in updateBinSize()#56
soimy merged 2 commits into
soimy:masterfrom
JohannesHoffmann:55-Bugs-edgy-rectplacement-updateBinSize

Conversation

@JohannesHoffmann

@JohannesHoffmann JohannesHoffmann commented Mar 13, 2023

Copy link
Copy Markdown
Contributor

This solves the bugs in #55

What have i done:

  • added fit or not fit check in extra test on rotated node to check for its better choice
  • removes padding on fit comparisons

I have doubts with the padding issue and my solution. It rotates only the fourth why not all? Is my solution correct?

@JohannesHoffmann

JohannesHoffmann commented Mar 13, 2023

Copy link
Copy Markdown
Contributor Author

I have a questin right here. I struggled a lot to reproduce the bugs because in maxrects-packer.ts the option for square is false and in maxrects-bin.ts the same option is true. Was hard to find this out. Should this be the same default options?

@soimy soimy merged commit 94b2b04 into soimy:master Aug 27, 2025
1 of 5 checks passed
@soimy

soimy commented Aug 27, 2025

Copy link
Copy Markdown
Owner

Due to doc's default value, square shall be default to false

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants