#include #include "dinterpolate.hpp" #define NX 10 #define NY 10 using namespace std; using namespace CosmoTool; typedef DelaunayInterpolate myTriangle; int main() { myTriangle t(&pos[0], &vals[0], &simplex[0], 4, 2); for (uint32_t iy = 0; iy <= NY; iy++) { for (uint32_t ix = 0; ix <= NX; ix++) { myTriangle::CoordType inter = { ix *1.0/ NX, iy *1.0/NY }; cout << inter[1] << " " << inter[0] << " " << t.computeValue(inter) << endl; } cout << endl; } return 0; }