|
|
3 年 前 | |
|---|---|---|
| .. | ||
| .gitignore | 3 年 前 | |
| CMakeLists.txt | 3 年 前 | |
| LICENSE | 3 年 前 | |
| README.md | 3 年 前 | |
| dict-list.h | 3 年 前 | |
| dict.c | 3 年 前 | |
| dict.h | 3 年 前 | |
| geom.c | 3 年 前 | |
| geom.h | 3 年 前 | |
| glu.h | 3 年 前 | |
| gluos.h | 3 年 前 | |
| main.c | 3 年 前 | |
| memalloc.c | 3 年 前 | |
| memalloc.h | 3 年 前 | |
| mesh.c | 3 年 前 | |
| mesh.h | 3 年 前 | |
| normal.c | 3 年 前 | |
| normal.h | 3 年 前 | |
| priorityq-heap.c | 3 年 前 | |
| priorityq-heap.h | 3 年 前 | |
| priorityq-sort.h | 3 年 前 | |
| priorityq.c | 3 年 前 | |
| priorityq.h | 3 年 前 | |
| render.c | 3 年 前 | |
| render.h | 3 年 前 | |
| sweep.c | 3 年 前 | |
| sweep.h | 3 年 前 | |
| tess.c | 3 年 前 | |
| tess.h | 3 年 前 | |
| tessellate.c | 3 年 前 | |
| tessellate.h | 3 年 前 | |
| tessellate.pro | 3 年 前 | |
| tessmono.c | 3 年 前 | |
| tessmono.h | 3 年 前 | |
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.