https://github.com/kingnobro/ue4-delaunay-triangulation
Unreal Engine 4 Delaunay Triangulation Module
https://github.com/kingnobro/ue4-delaunay-triangulation
Last synced: 5 months ago
JSON representation
Unreal Engine 4 Delaunay Triangulation Module
- Host: GitHub
- URL: https://github.com/kingnobro/ue4-delaunay-triangulation
- Owner: kingnobro
- Created: 2021-11-16T08:51:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T08:23:38.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T11:51:10.083Z (6 months ago)
- Language: C++
- Size: 11.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UE4-Delaunay-Triangulation
Unreal Engine 4 Delaunay Triangulation **Module**
### 1. What Is *Delaunay Triangulation*
[Link](https://www.bilibili.com/read/cv9358144)
### 2. Create Custom Module
You need to know how to add custom modules in UE4.
### 3. *Delaunay Triangulation* In UE4
First, [this repository](https://github.com/Jay2645/Unreal-Polygonal-Map-Gen) contains the *Delaunator* module in `Source/Delaunator` directory. You can directly put it in your own project. To be specific,
1. Clone [this repository](https://github.com/Jay2645/Unreal-Polygonal-Map-Gen).
2. 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, include `Delaunator.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.
### Notice
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**