DOLFIN-X
DOLFIN-X C++ interface
|
61 Eigen::Array<double, 2, 3, Eigen::RowMajor>
get_bbox(
int node)
const;
70 std::string
str()
const;
78 std::array<int, 2>
bbox(
int node)
const
80 assert(node < (
int)_bboxes.rows());
81 return {_bboxes(node, 0), _bboxes(node, 1)};
87 const std::vector<int>::iterator partition_begin,
88 const std::vector<int>::iterator partition_end);
94 void tree_print(std::stringstream& s,
int i)
const;
97 Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor> _bboxes;
100 Eigen::Array<double, Eigen::Dynamic, 3, Eigen::RowMajor> _bbox_coordinates;
Eigen::Array< double, 2, 3, Eigen::RowMajor > get_bbox(int node) const
Return bounding box coordinates for a given node in the tree.
Definition: BoundingBoxTree.cpp:396
int num_bboxes() const
Return number of bounding boxes.
Definition: BoundingBoxTree.cpp:365
std::array< int, 2 > bbox(int node) const
Get bounding box child nodes.
Definition: BoundingBoxTree.h:78
~BoundingBoxTree()=default
Destructor.
BoundingBoxTree & operator=(BoundingBoxTree &&other)=default
Move assignment.
Axis-Aligned bounding box binary tree. It is used to find entities in a collection (often a mesh::Mes...
Definition: BoundingBoxTree.h:30
BoundingBoxTree(const mesh::Mesh &mesh, int tdim)
Constructor.
Definition: BoundingBoxTree.cpp:268
std::unique_ptr< BoundingBoxTree > global_tree
Global tree for mesh ownership of each process (same on all processes)
Definition: BoundingBoxTree.h:105
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:46
std::string str() const
Print out for debugging.
Definition: BoundingBoxTree.cpp:367
int tdim() const
Topological dimension of leaf entities.
Definition: BoundingBoxTree.cpp:374