Unreal Engine 4 Delaunay Triangulation Module
You need to know how to add custom modules in UE4.
First, this repository contains the Delaunator module in Source/Delaunator
directory. You can directly put it in your own project. To be specific,
- Clone this repository.
- Add custom module
Source/Delaunator
in your project.
Plus, you have to make some modifications to the source file. Otherwise, errors would occur during compilation. Specifically,
#include "ModuleManager.h"
→#include "Modules/ModuleManager.h"
#include "GenericPlatform.h"
→#include "GenericPlatform/GenericPlatform.h"
- Whenever function
UE_LOG
occurs, includeDelaunator.h
in the cpp file. - Delete
Test
directory directly. Otherwise you will spend some time debugging.
Now, you can use Delaunay Triangulation in your UE4 project.
The code in my repository is the Delaunay Triangulation after my modification, based on my environment. Therefore, you may use it directly.
My UE4 Version: 4.27