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

Comparing ray/src/common/triangulate.h (file contents):
Revision 2.2 by greg, Fri Jan 24 01:26:44 2014 UTC vs.
Revision 2.3 by greg, Fri Feb 7 18:58:40 2014 UTC

# Line 50 | Line 50 | extern Vert2_list *polyAlloc(int nv);
50   /* callback for output triangle */
51   typedef int tri_out_t(const Vert2_list *tp, int a, int b, int c);
52  
53 < /* triangulate a contour/polygon, places results in STL vector
54 < * as series of triangles. */
53 > /* triangulate a polygon, send results to the given callback function */
54   extern int polyTriangulate(const Vert2_list *contour, tri_out_t *cb);
55  
56   /* compute area of a contour/polygon */
57   extern double polyArea(const Vert2_list *contour);
58  
59 < /* decide if point Px/Py is inside triangle defined by
61 < * (Ax,Ay) (Bx,By) (Cx,Cy) */
59 > /* decide if point P is inside triangle defined by ABC */
60   extern int insideTriangle(double Ax, double Ay,
61                        double Bx, double By,
62                        double Cx, double Cy,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines