The best hexagonal slopes of irregular sections

I am looking for recommendations for an application or library to calculate good techniques for regular hexagonal meshes in an irregular region or group of regions.

Minimally, I would like to provide an image and the maximum number of hexagons and get an image that rotates / shifts / scales the hexagonal grid in order to fill each hexagon with one color with minimal error. An additional feature may be the implementation of deformations of the main image (within certain limits) to achieve a better fit. I have some ideas on how I will do this myself, but it seems that this will solve the problem.

Thanks for any suggestions.

EDIT: The alleged case that I think of would be to generate reasonably correct hexagrams of real geography for use in games on board (or virtual boards).

+5
source share
1 answer

My general idea is to do the following:

  • you must bring your irregular curve shape closer to the minimum linear segments
  • then you can calculate the angle a between each pair of grids 90 <a <180.

There are several methods for approximating curves to rows: explained here

0
source

All Articles