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

Loose hex grid/individual cell dimensions #55

Open
pladams9 opened this issue Jun 10, 2020 · 1 comment
Open

Loose hex grid/individual cell dimensions #55

pladams9 opened this issue Jun 10, 2020 · 1 comment
Labels
feature New feature or request

Comments

@pladams9
Copy link
Owner

Instead of setting row and column sizes (which doesn't translate 100% to hex grids), treat all cells individually. Cells would be stored simply as a point representing their center, and borders would be drawn between those points.

  • The only constraint would be that an individual point could not be moved outside the hexagon formed by its neighboring six points (i.e. the neighboring centers).
  • A cell could be scaled individually be moving it's neighboring points uniformly outward or inward.
  • Fuzzy/magnet movements could be used, so that changes propagated outwards to a certain (adjustable) influence.
  • Rows, ranges, and arbitrary selections could all be adjusted the same way.

The grid would remain topologically the same, and therefore logically the same.

@pladams9 pladams9 added the feature New feature or request label Jun 10, 2020
@pladams9
Copy link
Owner Author

pladams9 commented Jun 10, 2020

hex_construction

Steps for constructing hexagon from neighboring centers:

  1. Find the perpendicular bisectors of the line segments connecting one center and its neighbors.
  2. Find the intersections between neighboring pairs of bisectors.
  3. Connect the intersections to form a hexagon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant