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

Centering tuning #21

Open
boner-cmd opened this issue Aug 4, 2020 · 0 comments
Open

Centering tuning #21

boner-cmd opened this issue Aug 4, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@boner-cmd
Copy link
Owner

Centering should base its offset, rather than on the "perfect" center, instead based on the center of an ideal object of the given ratio (i.e. a square matrix of 8 items should have the same centerpoint as a square matrix of 9 items. Possible solution, center each object as though centering an object of x * z?

I.e. if x row limit is 3 and shape is 1:1, if zcount reaches 3 before running out of items, then shift the entire offset by that of a the square of 3x3

For a clearer example, if 2:1 and x row limit is 4, center resulting matrix as though centering 8 items (4x2), even if the actual total number of items is 5, 6, or 7.

This may perform worse for non-identical objects (but unsure), where the attempt at idealized code is superior, but it would certainly improve consistency for objects like the unit cubes used for testing.

@boner-cmd boner-cmd added the bug Something isn't working label Aug 4, 2020
@boner-cmd boner-cmd self-assigned this Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant