+#ifndef BBTREE_H
+#define BBTREE_H
+
#include <iostream>
#include <vector>
#include <algorithm>
const int MIN_NB_ELEMS =15;
const int MAX_LEVEL=20;
+const double BBHUGE = 1e40;
using namespace std;
new_elems_left.reserve(nbelems/2+1);
new_elems_right.reserve(nbelems/2+1);
- double max_left=-HUGE;
- double min_right=HUGE;
+ double max_left=-BBHUGE;
+ double min_right=BBHUGE;
for (int i=0; i<nbelems;i++)
{
int elem;
{
if (_terminal) return _nbelems;
return _left->size()+_right->size();
-}};
+}
+};
+#endif
+#ifndef __CONVEX_INTERSECTOR_CXX__
+#define __CONVEX_INTERSECTOR_CXX__
#include "MEDMEM_Mesh.hxx"
#include "InterpolationUtils.hxx"
#include "PlanarIntersector.hxx"
}
}
+#endif
+#ifndef __GENERIC_INTERSECTOR_CXX__
+#define __GENERIC_INTERSECTOR_CXX__
#include "MEDMEM_Mesh.hxx"
#include "InterpolationUtils.hxx"
#include "PlanarIntersector.hxx"
}
}
+#endif
+#ifndef __PLANAR_INTERSECTOR_H__
+#define __PLANAR_INTERSECTOR_H__
+
#include "PlanarIntersector.hxx"
#include "MEDMEM_Mesh.hxx"
}
}
}
+#endif
\ No newline at end of file
+#ifndef __TRIANGULATION_INTERSECTOR_CXX__
+#define __TRIANGULATION_INTERSECTOR_CXX__
#include "MEDMEM_Mesh.hxx"
#include "InterpolationUtils.hxx"
#include "PlanarIntersector.hxx"
}
}
+#endif
#include "MEDMEM_Mesh.hxx"
#include "Interpolation3D.hxx"
-
+#include "Interpolation3D.txx"
#include <cmath>
using namespace MEDMEM;
MEDMEM::MESH mesh1(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler");
MEDMEM::MESH mesh2(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler");
Interpolation3D interpolator;
- vector<map<int,double> > matrix = interpolator.interpolateMeshes(mesh1,mesh2);
+ vector<map<int,double> > matrix;
+ interpolator.interpolateMeshes(mesh1,mesh2,matrix);
// dump
dumpIntersectionMatrix(matrix);
#include "Interpolation2D.hxx"
+#include "Interpolation2D.txx"
#include "MEDMEM_Mesh.hxx"
#include "MEDMEM_Field.hxx"
MEDMEM::Interpolation2D interp;
interp.setOptions(1e-6,2,intersectiontype);
- vector<map<int,double> > surfaces= interp.interpolateMeshes(target,source);
+ vector<map<int,double> > surfaces;
+ interp.interpolateMeshes(target,source,surfaces);
// map<int,double>::iterator mi;
-// cerr<< "Résultat interpolation: celulle " << 0 << endl;
+// cerr<< "R�sultat interpolation: celulle " << 0 << endl;
// for(mi=(surfaces[0]).begin(); mi!=(surfaces[0]).end(); mi++)
// cerr<< (*mi).first << " ; " << (*mi).second << endl;
#include "Interpolation3DSurf.hxx"
+#include "Interpolation3DSurf.txx"
+
#include "MEDMEM_Mesh.hxx"
#include "MEDMEM_Field.hxx"
MEDMEM::Interpolation3DSurf interp;
interp.setOptions(1e-6,2,medianPlane,intersectiontype, rotate);
- vector<map<int,double> > surfaces= interp.interpolateMeshes(source,target);
+ vector<map<int,double> > surfaces;
+ interp.interpolateMeshes(source,target,surfaces);
// map<int,double>::iterator mi;
-// cerr<< "Résultat interpolation: celulle " << 0 << endl;
+// cerr<< "R�sultat interpolation: celulle " << 0 << endl;
// for(mi=(surfaces[0]).begin(); mi!=(surfaces[0]).end(); mi++)
// cerr<< (*mi).first << " ; " << (*mi).second << endl;
}