libMesh
|
This class adapts list of libMesh Point
types for use in a nanoflann KD-Tree.
More...
#include <meshfree_interpolation.h>
Public Types | |
typedef Real | coord_t |
libMesh Point coordinate type More... | |
Public Member Functions | |
PointListAdaptor (const std::vector< Point > &pts) | |
size_t | kdtree_get_point_count () const |
Must return the number of data points. More... | |
coord_t | kdtree_distance (const coord_t *p1, const size_t idx_p2, size_t size) const |
coord_t | kdtree_get_pt (const size_t idx, int dim) const |
template<class BBOX > | |
bool | kdtree_get_bbox (BBOX &) const |
Optional bounding-box computation. More... | |
Private Attributes | |
const std::vector< Point > & | _pts |
This class adapts list of libMesh Point
types for use in a nanoflann KD-Tree.
For more on the basic idea see examples/pointcloud_adaptor_example.cpp in the nanoflann source tree.
Definition at line 191 of file meshfree_interpolation.h.
typedef Real libMesh::InverseDistanceInterpolation< KDDim >::PointListAdaptor< PLDim >::coord_t |
Definition at line 204 of file meshfree_interpolation.h.
|
inline |
Definition at line 197 of file meshfree_interpolation.h.
|
inline |
Definition at line 215 of file meshfree_interpolation.h.
|
inline |
Optional bounding-box computation.
true
if the BBOX was already computed by the class and returned in bb
so we can avoid redoing it, or false
to default to a standard bbox computation loop.Look at bb.size() to find out the expected dimensionality (e.g. 2 or 3 for point clouds)
Definition at line 284 of file meshfree_interpolation.h.
|
inline |
Must return the number of data points.
Definition at line 209 of file meshfree_interpolation.h.
|
inline |
Definition at line 260 of file meshfree_interpolation.h.
|
private |
Definition at line 194 of file meshfree_interpolation.h.
Referenced by libMesh::InverseDistanceInterpolation< KDDim >::PointListAdaptor< KDDim >::kdtree_distance(), libMesh::InverseDistanceInterpolation< KDDim >::PointListAdaptor< KDDim >::kdtree_get_point_count(), and libMesh::InverseDistanceInterpolation< KDDim >::PointListAdaptor< KDDim >::kdtree_get_pt().