Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to triangulate a polygon for rendering in opengl es on android ( no glu triangulation available)

Is there an already known algorithm for polygon triangulation? The polygon can be convex or concave (with no holes)

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

There are several algorithms out there. One of the most commonly used algorithm is the ear clipping algorithm. Here's a page with some more detail about this triangulation algorithm.

share|improve this answer
    
Awsome thanks ill check it out –  Jason Mar 12 '11 at 14:33
    
Here is the demo of ear clipping polyk.ivank.net/?p=demos&d=triangulate –  Ivan Kuckir Jun 16 '13 at 20:47
add comment

There are some algorithms and implementation of polygon triangulation on these books:

  • Computational Geometry: Algorithms and Applications. Chapter 3: Polygon Triangulation.
  • Computational Geometry in C. Chapter 1: Polygon Triangulation.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.