Changeset 5897 for anuga_core/source/anuga/utilities/polygon_ext.c
- Timestamp:
- Nov 6, 2008, 12:17:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/polygon_ext.c
r5891 r5897 15 15 16 16 #include "Python.h" 17 #include " numpy/arrayobject.h"17 #include "Numeric/arrayobject.h" 18 18 #include "math.h" 19 19 … … 222 222 } 223 223 for (k=0; k<M; k++) { 224 if (verbose){ 225 if (k %((M+10)/10)==0) printf("Doing %d of %d\n", k, M); 226 } 227 224 228 x = points[2*k]; 225 229 y = points[2*k + 1]; 226 230 227 if (verbose){228 if (k %((M+10)/10)==0) printf("Doing %d of %d, x=%f, y=%f\n", k, M, x, y);229 }230 231 231 inside = 0; 232 232 … … 376 376 *polygon, 377 377 *indices; 378 // PyObject *xxxx;379 378 380 379 int closed, verbose; //Flags … … 394 393 return NULL; 395 394 } 396 397 // points = (PyArrayObject *) PyArray_ContiguousFromObject(xxxx, PyArray_DOUBLE, 1, 1);398 395 399 396 M = points -> dimensions[0]; //Number of points
Note: See TracChangeset
for help on using the changeset viewer.