|
|
пре 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.