Changeset 8029
 Timestamp:
 Oct 7, 2010, 2:57:19 PM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/anuga_core/source/anuga/utilities/polygon_ext.c
r8028 r8029 316 316 317 317 int __polygon_triangle_overlap(double* polygon, 318 double* triangle) 318 double* triangle, 319 int polygon_number_of_vertices) 319 320 { 320 321 int i, ii, j, jj; … … 328 329 p0_y = polygon[1]; 329 330 330 for (i = 1; i < 5; i++)331 for (i = 1; i < polygon_number_of_vertices + 1; i++) 331 332 { 332 ii = i% 4;333 ii = i%polygon_number_of_vertices; 333 334 334 335 p1_x = polygon[2*ii]; … … 679 680 // Call underlying routine 680 681 res = __polygon_triangle_overlap((double*) polygon>data, 681 (double*) triangle > data); 682 (double*) triangle > data, 683 (int) polygon>dimensions[0]); 682 684 683 685
Note: See TracChangeset
for help on using the changeset viewer.