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