237 questions
0
votes
0
answers
67
views
Making a hexagonal rule tile where overflow from tiles are shown on top of tiles over itself in Unity
I am trying to create a custom Rule tile in unity.
TLDR: I am seeking to make a rule in my ruletile that allows for parts of a tile that "sticks out" of the tiles at the top, to have higher ...
-1
votes
1
answer
598
views
How to get Hexagonal Grid position from WorldPosition in Unity
I am currently building a hexagonal grid system in unity,
with hexagons whose dimension is a little different than regular one.
It's pointy-top, but its height and width is all 1, instead of 1 and ...
0
votes
1
answer
101
views
D3 Hexbin Hexagon Grid, why is row vs column offset unpredictable?
I'm using D3 to show a grid of hexagons. You can zoom in and out, and it changes the tile size. Sometimes the rows shift from normal, and I don't know how to predict or control it.
I would like the ...
1
vote
1
answer
291
views
H3 Cell gridDistance limitations
In the docs for gridDistance is the following sentence
"Finding the distance can fail because the two indexes are not comparable (different resolutions), too far apart, or are separated by ...
3
votes
0
answers
53
views
map a hex to original data points in geom_hex
I am trying to map hex from geom_hex to original data points. For example I want to find points in the iris dataframe that are related to highlighted hex (red circle).
data("iris")
rownames(...
0
votes
0
answers
78
views
How can I print a diagonal line of buttons (top-left -> bottom-right) upon loading page, each button rendering after the last?
In my project I am focused right now on the frontend implementation of a series of buttons. Once loading the page, buttons will render on the screen, one after the other, starting from the top-left of ...
1
vote
0
answers
232
views
Constructing a hexagonal heat-map with custom colors in each cell in google map(android)
How to construct a hexogonal shape heat map in google map.
Normally heat map in google map in constructed by following code
val heatMapProvider = HeatmapTileProvider.Builder()
....
0
votes
0
answers
66
views
What's the proper way to get a hex tile position from any given position?
The following code shows the mouse hit position with a gray sphere; the yellow sphere shows the snapped hex position; as you can see it works well when close to center but the moment I get a bit far ...
0
votes
0
answers
575
views
Hexagonal (pointy-topped) Grid [duplicate]
I found this code and the grid is made of flat-topped hexagons. I am trying to make them pointy-topped.
http://www.csharphelper.com/howtos/howto_hexagonal_grid.html
I have set the center of a hexagon ...
0
votes
0
answers
56
views
Determination of rectilinear movement by means of analysis of hexagons H3
There is a task, it is necessary to determine rectilinear movement among the transmitted GPS coordinates (without any binding to roads, water bodies, etc.). I converted the received GPS coordinates ...
7
votes
2
answers
1k
views
Convert between spiral coordinates and axial coordinates in hexagon grid
I'm making a hexagon tile based game, which generates a honeycomb arrangement of hexagons in a spiral shape. My goal is to convert a world position (e.g. a mouse click) to a spiral coordinate (index / ...
0
votes
2
answers
1k
views
How would I draw hexagonal grid using H3 in Javascript?
I want to make a system where a user will be able to draw a hexagonal grid. The regions and their coordinates will be stored in Database. We are thinking to implement H3 libary for this. How will be ...
0
votes
1
answer
412
views
How do I create a Hexagonal grid from country SpatialPolygon in R?
I would like to create a SpatialPolygons object (Hexagonal grid) that replace another SpatialPolygons.
my attempt using the sp, sf and rgeos packages does not work, I get the error:
Error in (function ...
0
votes
2
answers
366
views
Calculate width of hexagons in a field
I am drawing a hexagonal grid using javascript and svg. The grid needs to have a fixed width (let's say, of 1000px). The dimensions of the grid can differ, but I have that information (the columns and ...
0
votes
1
answer
318
views
Calculate the number of hexes between two hexes on a hex grid?
Using the hexgrid and coordinates above, I am trying to find a consistent formula to calculate the distance between two hexes.
1
vote
0
answers
238
views
Get corresponding hex bin centers for each point of a hexbin in python
I am looking for a way to find the corresponding bin center for every point in my hexbin plot. For example, here is my plot:
hex = plt.hexbin(
df['loc_x'], df['loc_y'],
extent=(-250, 250, 422....
2
votes
1
answer
7k
views
Need an algorithm to randomly generate groups on a hexagon grid
I created a hexagon grid based on information in this article
https://www.redblobgames.com/grids/hexagons/
Here's how it looks so far:
I want to divide this grid into groups similar to this:
I want ...
1
vote
0
answers
591
views
How to get the world coordinates of Tile corner points (unity tilemap)?
Good day!
How to get the world coordinates of Tile corner points (hex point top)? Unity tilemap.
My code:
Vector3Int Vector3IntPoint = new Vector3Int(4,8); // cell
Vector3 worldCenterPos = MyTileMap....
2
votes
0
answers
84
views
Distributing 3d points by value across a honeycomb hex grid
I'm looking for ways of interpolating a set of colors (3d values of r, g, b represented as [0-5] respectively) across a hexagonal honeycomb grid.
My specific scenario is a set of terminal colors: ...
1
vote
2
answers
2k
views
Can Uber h3 cover the entire globe in hexagonal grid?
Uber has released h3, a framework for efficiently handling big data in the geospatial file. Using h3, I attempted to get the location of a hexagonal grid location as shown in the figure.
(https://eng....
0
votes
0
answers
184
views
hexbin and ggplot in different panels
I'd like to combine a hexbin plot with a ggplot in different panels in R. I can get kinda close, but it's still not working:
library(hexbin)
library(ggplot2)
library(grid)
x1 <- rnorm(100)
y1 <...
1
vote
1
answer
837
views
How to make CSS hexagon/honeycomb grid (based on set math equations) flexible?
So I´ve made a CSS hexagon/honeycomb grid based on set math equations but I can´t seem to make it flexible.
Can´t seem to convert grid-auto-rows (.hexGridA and . hexGridB) from px to % in a meaningful ...
4
votes
1
answer
2k
views
Export SpatialPolygonsDataFrame as geojson or topojson in R
I am trying to convert a geojson of London local authorities into a hex cartogram where each hexagon represents one local authority. It works in R but when I try to export the generated hexgrid as ...
0
votes
0
answers
48
views
How do I get my set to stop adding duplicates?
I am making an implementation of the game Hexic. The game is centered around making clusters of Hexagons in order to remove them from the board. I have found a way to identify the coordinates of every ...
0
votes
1
answer
366
views
Generate hexagon lattices graph on the world using Networkx
I want to generate a hexagon grid on the ocean for finding a shortest path.
Networkx provides lattice.hexagonal_lattice_graph which generates a graph whose nodes and edges are the hexagonal tiling of ...