9
\$\begingroup\$

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).

\$\endgroup\$

2 Answers 2

12
\$\begingroup\$

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.

\$\endgroup\$
1
1
\$\begingroup\$

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.
\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .