Revert "Fix for #22"

This reverts commit 955761f46fcec73c91c5dbf2547b6f88afb5d3fc.

Change-Id: Ie076e9740cf66523f788197047bd378a41b46f2c
Reviewed-by: Zach Anderson <>
Commit-Queue: Jonah Williams <>
1 file changed
tree: 49a88f6fd1c7eeeba8b68841a7b34d46ab62c9d0
  1. Bin/
  2. Contrib/
  3. Example/
  4. Include/
  5. Source/
  6. .gitignore
  8. LICENSE.txt
  9. premake4.lua

This project is not actively maintained.


Version 1.0.2

This is refactored version of the original libtess which comes with the GLU reference implementation. The code is good quality polygon tesselator and triangulator. The original code comes with rather horrible interface and its' performance suffers from lots of small memory allocations. The main point of the refactoring has been the interface and memory allocation scheme.

A lot of the GLU tesselator documentation applies to Libtess2 too (apart from the API), check out

Simple bucketed memory allocator (see Graphics Gems III for reference) was added which speeds up the code by order of magnitude (tests showed 15 to 50 times improvement depending on data). The API allows the user to pass his own allocator to the library. It is possible to configure the library so that the library runs on predefined chunk of memory.

The API was changed to loosely resemble the OpenGL vertex array API. The processed data can be accessed via getter functions. The code is able to output contours, polygons and connected polygons. The output of the tesselator can be also used as input for new run. I.e. the user may first want to calculate an union all the input contours and the triangulate them.

The code is released under SGI FREE SOFTWARE LICENSE B Version 2.0.

Mikko Mononen