- Home /
Question by
ritoban · Sep 26, 2016 at 04:58 PM ·
meshfacestriangulation
Triangulation for Unity Mesh from Edges
I would like to create a mesh from a Delaunay triangulation. The Delaunay Triangulation was created using the Unity Delaunay library, and returns a list of edges. As a result, I have a list of Vector3s for the vertices and a list of edges. Each edge just contains 2 Vector3s as vertices. From this, I need to create the triangles array on a unity mesh. In the end, I should have a complete unity mesh.
My initial idea was: 1. Start with some edge. 2. Find another edge that shares a vertex. 3. Create the triangle. 4. Repeat.
But I can't figure out how I should go about implementing this.
Comment