Skip to content

better-looking results #1

Description

@semibran

The algorithm already minimizes whitespace, but I'm currently searching for a heuristic that prefers layouts that place whitespace closer to the bottom-right corner than leaving them strewn arbitrarily throughout the configuration.

An example of a "bad" configuration (generated automatically):

bad boxes

a "good" configuration (tweaked manually):

good boxes

The second one is easily the more compact revision. Unfortunately, calculating a score based on whitespace "position" is a lot more difficult than it appears. I've tried sorting by a lot of different positional shenanigans with the boxes (note that this algorithm isn't strictly bound to a grid) but no satisfactory results have come up yet.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions