|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| .gitignore | há 3 anos atrás | |
| CMakeLists.txt | há 3 anos atrás | |
| LICENSE | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
| dict-list.h | há 3 anos atrás | |
| dict.c | há 3 anos atrás | |
| dict.h | há 3 anos atrás | |
| geom.c | há 3 anos atrás | |
| geom.h | há 3 anos atrás | |
| glu.h | há 3 anos atrás | |
| gluos.h | há 3 anos atrás | |
| main.c | há 3 anos atrás | |
| memalloc.c | há 3 anos atrás | |
| memalloc.h | há 3 anos atrás | |
| mesh.c | há 3 anos atrás | |
| mesh.h | há 3 anos atrás | |
| normal.c | há 3 anos atrás | |
| normal.h | há 3 anos atrás | |
| priorityq-heap.c | há 3 anos atrás | |
| priorityq-heap.h | há 3 anos atrás | |
| priorityq-sort.h | há 3 anos atrás | |
| priorityq.c | há 3 anos atrás | |
| priorityq.h | há 3 anos atrás | |
| render.c | há 3 anos atrás | |
| render.h | há 3 anos atrás | |
| sweep.c | há 3 anos atrás | |
| sweep.h | há 3 anos atrás | |
| tess.c | há 3 anos atrás | |
| tess.h | há 3 anos atrás | |
| tessellate.c | há 3 anos atrás | |
| tessellate.h | há 3 anos atrás | |
| tessellate.pro | há 3 anos atrás | |
| tessmono.c | há 3 anos atrás | |
| tessmono.h | há 3 anos atrás | |
Polygon tessellation is a major pain in the neck. Have you ever tried writing fast and robust code for it? libtess is, to my knowledge, the only GPL-compatible, liberally-licensed, high-quality polygon triangulator out there.
This repository includes a self-contained function (tessellate, in tessellate.c) that you can call to triangulate a polygon that is potentially self-intersecting, with holes, or with duplicate vertices. Simple examples of calling the tessellate function directly are located in main.c.