Ed94 / UE4-Delaunay-Triangulation

Unreal Engine 4 Delaunay Triangulation Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UE4-Delaunay-Triangulation

Unreal Engine 4 Delaunay Triangulation Module

1. What Is Delaunay Triangulation

Link

2. Create Custom Module

You need to know how to add custom modules in UE4.

3. Delaunay Triangulation 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,

  1. Clone this repository.
  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

About

Unreal Engine 4 Delaunay Triangulation Module


Languages

Language:C++ 97.6%Language:C# 2.4%