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

dynamic bin size? #11

Open
RobMayer opened this issue Jul 6, 2024 · 3 comments
Open

dynamic bin size? #11

RobMayer opened this issue Jul 6, 2024 · 3 comments

Comments

@RobMayer
Copy link

RobMayer commented Jul 6, 2024

Hello,

I see you haven't worked on this in some time, but I'm wondering if there's any possibility of seeing a Dynamic Bin size. Essentially instead of feeding it the size of a sheet, let it grow the bin to include all items in some some configuration that minimizes the Area used?

I'm also slightly confused as to what SortStrategy does, as it doesn't feel like it makes a difference to any layouts that I've done.

@RobMayer
Copy link
Author

RobMayer commented Jul 9, 2024

I figured out the various options of the sorting, splitting, and what not does.

I've got a couple things that I learned in my exploration, if its meaningful or helpful:
if "allowRotation" is true, it doesn't always find the an optimal solution that would be found as though "allowRotation" were false. I thought about adding the rotation option to the Cartesian and letting it decide which results in fewer pages.

speaking of which: the reducer makes no distinction on which is better past the number of sheets. I've been making a variant that picks a more optimal solution if two solutions have the same number of sheets. I've mostly been going with "choose the solution that has the smallest cumulative bounding box perimeter". One could add another option to set the thing you want to prioritize, too.

In any event, thank you for all this - it's been fun to play with :)

@tyschroed
Copy link
Owner

Hi Rob - thanks for your comments! Unfortunately I haven't had much time lately to work on this, but would would of course gladly accept contributions. Love your approach for choosing the best possible option and the rotation option findings.

@tyschroed tyschroed reopened this Jul 9, 2024
@RobMayer
Copy link
Author

I will absolutely dig into it and submit a PR.

If you were curious, by the way: https://thatrobhuman.com/gridfinity-gamma/ this is what I used it for.

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

No branches or pull requests

2 participants