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

Add odd grid offset and fix vertical bars #71

Merged
merged 2 commits into from
Apr 24, 2020
Merged

Conversation

JShep1
Copy link

@JShep1 JShep1 commented Apr 23, 2020

This PR introduces a better and more intuitive approach to odd horizontal and vertical cell count. Previously, odd vertical cell count would change the grid to be about the origin, and odd horizontal cell count would readjust the grid as well. This PR will simply append a row and column to the grid in cases of odd horizontal cell count instead of moving the grid over. Similarly, an odd vertical cell count will add a grid layer above the current grid rather than moving the grid to center itself around the origin. I also found a bug in the vertical bar generation of the 3D grids and fixed it in this PR.

Before:
Screenshot from 2020-04-23 11-05-22

After
Screenshot from 2020-04-23 13-32-38

Before:
Screenshot from 2020-04-23 13-35-58

After:
Screenshot from 2020-04-23 13-39-42

Fixes ign-rendering#70

Signed-off-by: John Shepherd [email protected]

John Shepherd added 2 commits April 23, 2020 13:23
Signed-off-by: John Shepherd <[email protected]>
@JShep1 JShep1 requested a review from iche033 April 23, 2020 23:45
@JShep1 JShep1 merged commit 44e8f39 into ign-rendering3 Apr 24, 2020
@JShep1 JShep1 deleted the jshep1/fix_grid branch April 24, 2020 19:00
@JShep1 JShep1 mentioned this pull request Apr 24, 2020
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