Commit 4c91a3c
Extract triangulation algorithms into standalone sandbox/triangulation/ files
Create self-contained header (triangulation.h) with fan, earclip, and
MWT greedy algorithms that can be tested independently of tinyobjloader.
Add standalone test program (main.cc) with 24 test cases covering all
three algorithms, 3D vertices, edge cases, and weight optimization.
Add Makefile for standalone build/test.
Co-authored-by: syoyo <18676+syoyo@users.noreply.github.com>1 parent c772dca commit 4c91a3c
4 files changed
Lines changed: 923 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments