21 #ifndef __BOUNDING_BOX_TREE_H 22 #define __BOUNDING_BOX_TREE_H 33 class GenericBoundingBoxTree;
65 void build(
const Mesh& mesh, std::size_t tdim);
74 void build(
const std::vector<Point>& points, std::size_t gdim);
87 std::vector<unsigned int>
116 std::pair<std::vector<unsigned int>, std::vector<unsigned int> >
129 std::vector<unsigned int>
144 std::vector<unsigned int>
168 std::pair<std::vector<unsigned int>, std::vector<unsigned int> >
215 std::pair<unsigned int, double>
240 std::pair<unsigned int, double>
265 void _check_built()
const;
268 std::shared_ptr<GenericBoundingBoxTree> _tree;
Definition: BoundingBoxTree.h:40
void build(const Mesh &mesh)
Definition: BoundingBoxTree.cpp:43
std::vector< unsigned int > compute_entity_collisions(const Point &point) const
Definition: BoundingBoxTree.cpp:111
std::vector< unsigned int > compute_process_collisions(const Point &point) const
Definition: BoundingBoxTree.cpp:123
std::pair< unsigned int, double > compute_closest_point(const Point &point) const
Definition: BoundingBoxTree.cpp:183
unsigned int compute_first_entity_collision(const Point &point) const
Definition: BoundingBoxTree.cpp:159
std::pair< unsigned int, double > compute_closest_entity(const Point &point) const
Definition: BoundingBoxTree.cpp:171
BoundingBoxTree()
Create empty bounding box tree.
Definition: BoundingBoxTree.cpp:33
std::vector< unsigned int > compute_collisions(const Point &point) const
Definition: BoundingBoxTree.cpp:88
unsigned int compute_first_collision(const Point &point) const
Definition: BoundingBoxTree.cpp:148
bool collides(const Point &point) const
Definition: BoundingBoxTree.cpp:193
~BoundingBoxTree()
Destructor.
Definition: BoundingBoxTree.cpp:38
bool collides_entity(const Point &point) const
Definition: BoundingBoxTree.cpp:198