Ignore:
Timestamp:
Nov 5, 2008, 4:19:05 PM (15 years ago)
Author:
rwilson
Message:

Converted to full numpy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/polygon_ext.c

    r5570 r5891  
    1515
    1616#include "Python.h"
    17 #include "Numeric/arrayobject.h"
     17#include "numpy/arrayobject.h"
    1818#include "math.h"
    1919
     
    222222  } 
    223223  for (k=0; k<M; k++) {
     224    x = points[2*k];
     225    y = points[2*k + 1];
     226
    224227    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);
    226229    }
    227230   
    228     x = points[2*k];
    229     y = points[2*k + 1];
    230 
    231231    inside = 0;
    232232
     
    376376    *polygon,
    377377    *indices;
     378//  PyObject *xxxx;
    378379
    379380  int closed, verbose; //Flags
     
    393394    return NULL;
    394395  }
     396 
     397//  points = (PyArrayObject *) PyArray_ContiguousFromObject(xxxx, PyArray_DOUBLE, 1, 1);
    395398
    396399  M = points -> dimensions[0];   //Number of points
Note: See TracChangeset for help on using the changeset viewer.