31 #include "xc_utils/src/geom/pos_vec/KDTreePos.h" 32 #include "xc_basic/src/kdtree++/kdtree.hpp" 48 explicit NodePos(
const Pos3d &p);
49 inline const Node *getNodePtr(
void)
const 51 static inline double tac(
NodePos p,
size_t k ) {
return p[k]; }
55 {
return ((A.getNodePtr()== B.getNodePtr()) && (A[0] == B[0]) && (A[1] == B[1]) && (A[2] == B[2])); }
58 class KDTreeNodes:
protected kd_tree::KDTree<3, NodePos, std::pointer_to_binary_function<NodePos,size_t,double> >
60 size_t pend_optimizar;
62 typedef kd_tree::KDTree<3, NodePos, std::pointer_to_binary_function<NodePos,size_t,double> > tree_type;
65 void insert(
const Node &);
66 void erase(
const Node &);
69 const Node *getNearestNode(
const Pos3d &pos)
const;
70 const Node *getNearestNode(
const Pos3d &pos,
const double &r)
const;
Mesh node.
Definition: Node.h:99
Definition: KDTreeNodes.h:58
NodePos(const Node &)
Constructor.
Definition: KDTreeNodes.cc:34
Node position for its use in the KDTree.
Definition: KDTreeNodes.h:42
================================================================================
Definition: ContinuaReprComponent.h:34