pladams9 / hexsheets

A basic spreadsheet application with hexagonal cells inspired by: http://www.secretgeek.net/hexcel.
MIT License
90 stars 3 forks source link

Loose hex grid/individual cell dimensions #55

Open pladams9 opened 4 years ago

pladams9 commented 4 years ago

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 grid would remain topologically the same, and therefore logically the same.

pladams9 commented 4 years ago

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.