Jan
6
2012

Noob Triangulator (js)

Testing mesh (triangle) generation.. (screenshot: random mesh plane)

The REAL Triangulator is here: http://wiki.unity3d.com/index.php/Triangulator  (it can handle complex shapes etc.)

My javascript triangulator works by adding 1 vertex in the middle, and every triangle will point to it.
I was thinking could use this for drawing outlines with mouse, then create mesh from the outline, noob-triangulate it.

Webplayer:
nothing much to see..

Download source:
FakeTriangulator2.unityPackage

Image#2: Two pass mesh with hole testing, using 3d triangulator, then modify mesh again – see comments section for the 3d tri. source (21.09.2014)
mesh_with_hole_triangulate_unity


Related Posts

About the Author:

.fi

15 Comments + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.