| # | Line 133 | Line 133 | polyTriangulate(const Vert2_list *contour, tri_out_t * | |
|---|---|---|
| 133 | ||
| 134 | /* we want a counter-clockwise polygon in V */ | |
| 135 | ||
| 136 | < | if ( 0.0 < Area(contour) ) |
| 136 | > | if ( 0.0 < polyArea(contour) ) |
| 137 | for (v=0; v<contour->nv; v++) V[v] = v; | |
| 138 | else | |
| 139 | for(v=0; v<contour->nv; v++) V[v] = (contour->nv-1)-v; | |
| # | Line 165 | Line 165 | polyTriangulate(const Vert2_list *contour, tri_out_t * | |
| 165 | a = V[u]; b = V[v]; c = V[w]; | |
| 166 | ||
| 167 | /* output Triangle */ | |
| 168 | < | (*cb)(contour, a, b, c); |
| 168 | > | if (!(*cb)(contour, a, b, c)) return false; |
| 169 | ||
| 170 | m++; | |
| 171 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |