To be able to do biome transitions in procedural generation, I need to know when chosen coordinates (x, y, z)
are within a distance d
of an other cell.
I can make a simple 3D voronoï by placing cell cores in a volume and then for each given (x, y, z)
coordinates, look for the closest cell core but this method does not work to get the distance d
to the cell's membrane as I need to know witch are the neighbour cells.
Is there a simple way to know if two cells are neighbours or should I rather use a different way ? ( and in the second case, how should I proceed ? )