28 #ifndef KDTreeElements_h 29 #define KDTreeElements_h 31 #include "xc_utils/src/geom/pos_vec/KDTreePos.h" 32 #include "xc_basic/src/kdtree++/kdtree.hpp" 48 explicit ElemPos(
const Pos3d &p);
49 inline const Element *getElementPtr(
void)
const 52 static inline double tac(
ElemPos p,
size_t k ) {
return p[k]; }
56 {
return ((A.getElementPtr()== B.getElementPtr()) && (A[0] == B[0]) && (A[1] == B[1]) && (A[2] == B[2])); }
59 class KDTreeElements:
protected kd_tree::KDTree<3, ElemPos, std::pointer_to_binary_function<ElemPos,size_t,double> >
61 size_t pend_optimizar;
63 typedef kd_tree::KDTree<3, ElemPos, std::pointer_to_binary_function<ElemPos,size_t,double> > tree_type;
70 const Element *getNearestElement(
const Pos3d &pos)
const;
71 const Element *getNearestElement(
const Pos3d &pos,
const double &r)
const;
Element position for KDTree building.
Definition: KDTreeElements.h:42
Base calass for the finite elements.
Definition: Element.h:104
Definition: KDTreeElements.h:59
ElemPos(const Element &)
Constructor.
Definition: KDTreeElements.cc:34
================================================================================
Definition: ContinuaReprComponent.h:34