Skip to main content
GameDev.net gamedev.net
🔒 Locked

Using the 'triangle' library

Started by Krohm Jan 16, 2012 at 11:47 AM 0 replies 2k views
Original Post
Krohm
Krohm
Can someone explain to me how to use the triangle library?
http://www.cs.cmu.edu/~quake/triangle.html

I've spent about 4 hours now trying to specify the boundary for a mesh I have to triangulate with no success. The library just triangolates all the points ignoring the specified segments.
On a later thought, it looks like segments are just required to be there but don't really restrict the triangulation.
I am definitely missing something.
I'm going to try edges now, but I don't have much hope, from documentation, it looks like they are not used as input parameters (?).

Suggestions are welcome.
Previously "Krohm"
Krohm
Krohm
Replying for future reference.

Triangle's documentation could have some rewording. It appears the "-p" option is not just related to parsing of .poly files but also works in the library by enabling segment processing for PSLG.
Previously "Krohm"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.