ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/triangulate.c
(Generate patch)

Comparing ray/src/common/triangulate.c (file contents):
Revision 2.1 by greg, Thu Jan 23 23:51:41 2014 UTC vs.
Revision 2.2 by greg, Fri Jan 24 01:26:44 2014 UTC

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines