Flow123d
JS_before_hm-1713-g943b6bc16
|
Armor::ArmaVec< double, spacedim > Point
std::vector< unsigned int > in_leaves_
vector stored element indexes in leaf nodes
uint make_node(const BoundingBox &box, unsigned int node_idx)
std::vector< double > coors_
temporary vector stored values of coordinations for calculating median
std::vector< BIHNode > nodes_
vector of tree nodes
const BoundingBox & ele_bounding_box(unsigned int ele_idx) const
Gets bounding box of element of given index ele_index.
std::vector< BoundingBox > elements_
mesh
Class for O(log N) lookup for intersections with a set of bounding boxes.
static const unsigned int max_median_sample_size
max count of elements to estimate median - value must be even
unsigned int get_element_count() const
std::vector< BoundingBox > & get_elements()
Bounding box in 3d ambient space.
static const unsigned int dimension
count of dimensions
void find_point(const Space< 3 >::Point &point, std::vector< unsigned int > &result_list, bool full_list=false) const
const BoundingBox & tree_box() const
static const double size_reduce_factor
required reduction in size of box to allow further splitting
double estimate_median(unsigned char axis, const BIHNode &node)
BIHTree(unsigned int soft_leaf_size_limit=BIHTree::default_leaf_size_limit)
void add_boxes(const std::vector< BoundingBox > &boxes)
unsigned int leaf_size_limit
Maximal number of elements stored in a leaf node of BIH tree.
BoundingBox main_box_
Main bounding box. (from mesh)
void find_bounding_box(const BoundingBox &boundingBox, std::vector< unsigned int > &result_list, bool full_list=false) const
unsigned int max_n_levels
Maximal count of BIH tree levels.
void split_node(const BoundingBox &node_box, unsigned int node_idx)
create bounding boxes of element
static const unsigned int default_leaf_size_limit
Default leaf size limit.
std::vector< unsigned int > node_stack_
Stack for search algorithms.