6 #include "MEDMEM_InterpolationHighLevelObjects.hxx"
9 #include "LocalTraceCollector.hxx"
10 #endif /* ifdef _DEBUG_*/
12 #define affiche(NOEUD) cout<<flush;for (int iii=0;iii<DIMENSION;iii++) cout<<NOEUD[iii]<<" "<<flush;
17 LocalTraceCollector::instance();
18 #endif /* ifdef _DEBUG_*/
22 const int DIMENSION = 3;
23 const int NBR_NOEUDS = 8;
24 const int NBR_INC = 3;
26 double noeuds[DIMENSION*NBR_NOEUDS] = { 0,0,0,
35 double noeuds_inconnus[DIMENSION*NBR_INC] = { 2 ,2 ,2 ,
39 double * tmp1, * tmp2;
41 for (i=0;i<NBR_NOEUDS;i++)
43 cout<<"Noeud["<<i<<"] = ";
44 tmp1=&noeuds[DIMENSION*i];
49 Meta_dTree<DIMENSION> Octree(NBR_NOEUDS,noeuds);
51 for (i=0;i<NBR_INC;i++)
53 cout<<"Noeud le plus proche de ";
54 tmp1=&noeuds_inconnus[DIMENSION*i];
57 tmp2=&noeuds[DIMENSION*Octree.trouve_plus_proche_point(tmp1)];
59 cout<<" ; Vérification par méthode bourrin : ";
60 tmp2=&noeuds[DIMENSION*Octree.trouve_plus_proche_point_bourrin(tmp1)];