Dynagon by lanius - 1


Dynamically generates polygon meshes in Unity.

Unknown VersionMIT LicenseUpdated 6 years agoCreated on July 14th, 2014
Go to source


Dynamically generates polygon meshes in Unity. It implements 2D/3D Delaunay triangulation.


Dynagon demo


Drop Dynagon folder into Assets of the project.

Can create meshes from vertices:

using UnityEngine;
using System.Collections.Generic;
using Dynagon;

var vertices = new List<Vector3>() {
    new Vector3(0f, 1f, 0f),
    new Vector3(0f, -0.3f, 0.9f),
    new Vector3(0.8f, -0.3f, -0.5f),
    new Vector3(-0.8f, -0.3f, -0.5f)


Or separately, can triangulate and create a polygon:

var triangles = Triangulator3D.Triangulate(vertices);
new Polygon3D(new GameObject(), triangles).Build();

See samples for more details.

Show all projects by lanius