13 #ifndef POINT_LOCATER_HPP
14 #define POINT_LOCATER_HPP
19 template <
typename _Tree,
typename _Boxes >
44 template <
typename Po
int_map,
typename List >
79 template <
typename Po
int_map,
typename Entities,
typename Communicator >
101 template <
typename Po
ints,
typename Entities >
104 typedef typename Points::const_iterator Point_iterator;
105 typedef typename Entities::value_type Result;
107 result.reserve( query_points.size() );
108 for( Point_iterator i = query_points.begin(); i != query_points.end(); ++i )
111 tree_.find( *i, tol, h );
112 result.push_back( h );
118 template <
typename Po
ints,
typename Entities >
123 typedef typename Points::const_iterator Point_iterator;
124 typedef typename Entities::value_type::first_type Entity_handle;
126 result.reserve( query_points.size() );
127 std::size_t count = 0;
128 std::stringstream ss;
129 typename Entities::iterator j =
entities.begin();
130 for( Point_iterator i = query_points.begin(); i != query_points.end(); ++i, ++j )
134 const Entity_handle h =
tree_.bruteforce_find( *i, tol );
138 for(
int k = 0; k < 3; ++k )
153 std::ofstream out(
"unlocated_pts" );
156 std::cout << count <<
" vertices are not contained in _any_ elements!" << std::endl;