DOLFIN-X
DOLFIN-X C++ interface
|
60 Eigen::Array<double, 2, 3, Eigen::RowMajor>
get_bbox(
int node)
const;
69 std::string
str()
const;
77 std::array<int, 2>
bbox(
int node)
const
79 assert(node < (
int)_bboxes.rows());
80 return {_bboxes(node, 0), _bboxes(node, 1)};
86 const Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor>& bboxes,
87 const Eigen::Array<double, Eigen::Dynamic, 3, Eigen::RowMajor>&
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:368
int num_bboxes() const
Return number of bounding boxes.
Definition: BoundingBoxTree.cpp:337
std::array< int, 2 > bbox(int node) const
Get bounding box child nodes.
Definition: BoundingBoxTree.h:77
~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:29
BoundingBoxTree(const mesh::Mesh &mesh, int tdim)
Constructor.
Definition: BoundingBoxTree.cpp:262
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:339
int tdim() const
Topological dimension of leaf entities.
Definition: BoundingBoxTree.cpp:346