I stumbled across Voronoi Diagrams the other day and thought they were really cool. I made a plugin implementation for Unreal. Hope someone can find it useful!
To use, clone the code into a directory named ‘VoronoiDiagram’ in your Unreal project’s plugin directory. Don’t forget to add a public dependency to your project for the plugin, or else your Unreal project will not be able to find it.
Fortune’s Algorithm as outlined in:
Steve J. Fortune (1987). “A Sweepline Algorithm for Voronoi Diagrams”. Algorithmica 2, 153-174.
Bresenham’s line algorithm as outlined in:
Bresenham, J. E. (1 January 1965). “Algorithm for computer control of a digital plotter”. IBM Systems Journal 4 (1): 25–30
Voronoi is awesome. It’s one of the essential procedural base fractals. Heck, if you can generate the co-ordinates in 3D space with a gradient in each tile you get a great volumetric randomiser. Nice work fuzzy!
Okay, I’m trying to include the plugin on my code project. I’ve got the plugin installed and its recognized by the engine, but my source code doesn’t recognize include “VoronoiDiagram.h”
I’ve never installed or run a third party plugin before, so all of this is new to me. I think I’m missing something small but critical: Telling the project about the plugin dependency. I just don’t know where or how to do that, even after looking through all of the documentation. Do I right click on my project in visual studio and add a build dependency? If so, I don’t see the plugin listed.
There’s also an “external dependencies” filter, but it also don’t include VoronoiDiagram.h, or anything like that, and if this is where it goes, I don’t know how to add external dependencies here.
I also build my project and look at the plugins section. The Voronoi plugin shows up and its checked as being enabled for the project.
I’m at a loss. Where and how do I add a “public dependency” to my existing code project?