Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP + matrix1] Tesselation/ Triangulation (polygon to triangles) through glu32.dll

Author
Message
Manson_NS
19
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 12th Aug 2010 15:10
After quite a period of working back and forth with the tesselation build into OpenGl (and any windows PC) I've finaly come up with something useful.

This code will take a polygon and break it into triangles, regardless of winding direction etc, and uses the build in errorcode system, if you encounter a mistake somewhere.

Example 1 simply draws the triangles as lines, Example 2 creates the polygon as a 3D object - enjoy!

BTW: If you want to toy with this, example 1 contains a few sparse notes!

Attachments

Login to view attachments
Manson_NS
19
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 12th Aug 2010 15:11
Example 2 for download - which again is by far the more advanced of the two.

Attachments

Login to view attachments
NightX
15
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 14th Aug 2010 12:38
Pic or Exe ?

Login to post a reply

Server time is: 2024-04-20 15:23:50
Your offset time is: 2024-04-20 15:23:50