6 #include "MEDMEM_InterpolationHighLevelObjects.hxx"
8 #define affiche(NOEUD) cout<<flush;for (int iii=0;iii<DIMENSION;iii++) cout<<NOEUD[iii]<<" "<<flush;
14 const int DIMENSION = 3;
15 const int NBR_NOEUDS = 8;
16 const int NBR_INC = 3;
18 double noeuds[DIMENSION*NBR_NOEUDS] = { 0,0,0,
27 double noeuds_inconnus[DIMENSION*NBR_INC] = { 2 ,2 ,2 ,
31 double * tmp1, * tmp2;
33 for (i=0;i<NBR_NOEUDS;i++)
35 cout<<"Noeud["<<i<<"] = ";
36 tmp1=&noeuds[DIMENSION*i];
41 Meta_dTree<DIMENSION> Octree(NBR_NOEUDS,noeuds);
43 for (i=0;i<NBR_INC;i++)
45 cout<<"Noeud le plus proche de ";
46 tmp1=&noeuds_inconnus[DIMENSION*i];
49 tmp2=&noeuds[DIMENSION*Octree.trouve_plus_proche_point(tmp1)];
51 cout<<" ; Vérification par méthode bourrin : ";
52 tmp2=&noeuds[DIMENSION*Octree.trouve_plus_proche_point_bourrin(tmp1)];