33 #ifndef MOAB_SPATIALLOCATOR_HPP
34 #define MOAB_SPATIALLOCATOR_HPP
84 int* is_inside = NULL,
85 const double rel_iter_tol = 1.0e-10,
86 const double abs_iter_tol = 1.0e-10,
87 const double inside_tol = 1.0e-6 );
94 int* is_inside = NULL,
95 const double rel_iter_tol = 1.0e-10,
96 const double abs_iter_tol = 1.0e-10,
97 const double inside_tol = 1.0e-6 );
104 const double rel_iter_tol = 1.0e-10,
105 const double abs_iter_tol = 1.0e-10,
106 const double inside_tol = 1.0e-6 );
114 const double rel_iter_tol = 1.0e-10,
115 const double abs_iter_tol = 1.0e-10,
116 const double inside_tol = 1.0e-6 );
140 const double rel_iter_tol = 1.0e-10,
141 const double abs_iter_tol = 1.0e-10,
142 const double inside_tol = 1.0e-6 );
152 const double rel_iter_tol = 1.0e-10,
153 const double abs_iter_tol = 1.0e-10,
154 const double inside_tol = 1.0e-6 );
168 int* is_inside = NULL,
169 const double rel_iter_tol = 1.0e-10,
170 const double abs_iter_tol = 1.0e-10,
171 const double inside_tol = 1.0e-6 );
247 inline ErrorCode get_point_ijk(
const CartVect& point,
const double abs_iter_tol,
int* ijk )
const;
252 inline int proc_from_ijk(
const int *ijk)
const;
258 inline int proc_from_point(
const double* pos,
const double abs_iter_tol )
const;
355 const double rel_iter_tol,
356 const double abs_iter_tol,
357 const double inside_tol )
359 return locate_points( pos, 1, &ent, params, is_inside, rel_iter_tol, abs_iter_tol, inside_tol );
363 inline ErrorCode SpatialLocator::get_point_ijk(
const CartVect& point,
const double abs_iter_tol,
int* ijk )
const
365 for(
int i = 0; i < 3; i++ )
376 return ( ijk[0] >= 0 && ijk[1] >= 0 && ijk[2] >= 0 ?
MB_SUCCESS : MB_FAILURE );
381 inline int SpatialLocator::proc_from_ijk(
const int *ijk)
const
387 inline int SpatialLocator::proc_from_point(
const double* pos,
const double abs_iter_tol )
const
390 ErrorCode rval = get_point_ijk( CartVect( pos ), abs_iter_tol, ijk );