This allows us to adapt the MeshBase class for use with nanoflann. More...
#include <NanoflannMeshAdaptor.h>
Public Types | |
typedef Real | coord_t |
libMesh Point coordinate type More... | |
Public Member Functions | |
NanoflannMeshAdaptor (const MeshBase &mesh) | |
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 |
Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in _mesh. More... | |
coord_t | kdtree_get_pt (const size_t idx, int dim) const |
Returns the dim'th component of the idx'th point in the class. More... | |
template<class BBOX > | |
bool | kdtree_get_bbox (BBOX &) const |
Optional bounding-box computation: return false to default to a standard bbox computation loop. More... | |
Private Attributes | |
const MeshBase & | _mesh |
This allows us to adapt the MeshBase class for use with nanoflann.
Taken from detect_slit.cc
Definition at line 41 of file NanoflannMeshAdaptor.h.
typedef Real NanoflannMeshAdaptor< Dim >::coord_t |
libMesh Point
coordinate type
Definition at line 53 of file NanoflannMeshAdaptor.h.
|
inline |
Definition at line 48 of file NanoflannMeshAdaptor.h.
|
inline |
Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in _mesh.
Definition at line 64 of file NanoflannMeshAdaptor.h.
|
inline |
Optional bounding-box computation: return false to default to a standard bbox computation loop.
Definition at line 96 of file NanoflannMeshAdaptor.h.
|
inline |
Must return the number of data points.
Definition at line 58 of file NanoflannMeshAdaptor.h.
|
inline |
Returns the dim'th component of the idx'th point in the class.
Definition at line 82 of file NanoflannMeshAdaptor.h.
|
private |
Definition at line 45 of file NanoflannMeshAdaptor.h.
Referenced by NanoflannMeshAdaptor< Dim >::kdtree_distance(), NanoflannMeshAdaptor< Dim >::kdtree_get_point_count(), and NanoflannMeshAdaptor< Dim >::kdtree_get_pt().