1 // GetDP - Copyright (C) 1997-2021 P. Dular and C. Geuzaine, University of Liege
2 //
3 // See the LICENSE.txt file for license information. Please report all
4 // issues on https://gitlab.onelab.info/getdp/getdp/issues.
5 
6 #ifndef POS_SEARCH_H
7 #define POS_SEARCH_H
8 
9 #include "ProData.h"
10 #include "GeoData.h"
11 #include "ListUtils.h"
12 
13 struct Brick {
14   List_T *p[3];
15 } ;
16 
17 struct ElementBox {
18   double  Xmin, Xmax ;
19   double  Ymin, Ymax ;
20   double  Zmin, Zmax ;
21 } ;
22 
23 struct PointElement {
24   double d;
25   double xp, yp, zp;
26   int ElementIndex;
27 } ;
28 
29 void Free_SearchGrid(struct Grid * Grid);
30 
31 void InWhichElement(struct Grid *Grid,
32 		    List_T *ExcludeRegion,
33 		    struct Element * Element,
34 		    int Flag,
35 		    double  x, double  y, double  z,
36 		    double *u, double *v, double *w);
37 
38 void xyz2uvwInAnElement(struct Element *Element,
39 			double  x, double  y, double  z,
40 			double *u, double *v, double *w);
41 
42 #endif
43