I want to convert a Voronoi Graph made with this awesome library by jceipek on GitHub into something I can work on.
So far so good, this user provides with a demo to start with and shows how to generate the VG.
How do I convert the VG (made by edges and that dot in the middle) into something that I can work with?
Such as, after you generate some noise and apply to it (height), you colour the polygons based on it.
Something comes to my mind about instantiating meshes and tiles based on the edges and the position of the dot as a start, but it won't work if I can't "detect" the polygon.
Image from this blog about Voronoi Mapping link
What I have:
It is drawn with Gizmos (for visual debugging in Unity)
I want to know how to color my polygons as in the expected image above. So I thought about doing a mesh or individual tile (and color it based on height afterwards but that is sauce for another question if needed)
Edit of my progress:
To further explain this question I provide the next image.
The image shows that I could use that position data somehow and turn that random polygon shape into a "tile" that will have a colour (mesh?) and possible data in it (script).
I hope this helps otherwise let me know in the comments.