Special adaptor that works with subdomains of the Mesh. More...
#include <NanoflannMeshAdaptor.h>
Public Types | |
typedef Real | coord_t |
libMesh Point coordinate type More... | |
Public Member Functions | |
NanoflannMeshSubdomainAdaptor (const MeshBase &mesh, subdomain_id_type s) | |
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 |
subdomain_id_type | _sid |
std::set< dof_id_type > | _legal_point_indices |
Special adaptor that works with subdomains of the Mesh.
When nanoflann asks for the distance between points p1 and p2, and p2 is not a Point of an element in the required subdomain, a "large" distance is returned. Likewise, when the coordinates of a point not in the subdomain are requested, a point at "infinity" is returned.
Definition at line 118 of file NanoflannMeshAdaptor.h.
typedef Real NanoflannMeshSubdomainAdaptor< Dim >::coord_t |
libMesh Point
coordinate type
Definition at line 144 of file NanoflannMeshAdaptor.h.
|
inline |
Definition at line 131 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 155 of file NanoflannMeshAdaptor.h.
|
inline |
Optional bounding-box computation: return false to default to a standard bbox computation loop.
Definition at line 195 of file NanoflannMeshAdaptor.h.
|
inline |
Must return the number of data points.
Definition at line 149 of file NanoflannMeshAdaptor.h.
|
inline |
Returns the dim'th component of the idx'th point in the class.
Definition at line 177 of file NanoflannMeshAdaptor.h.
|
private |
Definition at line 128 of file NanoflannMeshAdaptor.h.
Referenced by NanoflannMeshSubdomainAdaptor< Dim >::kdtree_distance(), NanoflannMeshSubdomainAdaptor< Dim >::kdtree_get_pt(), and NanoflannMeshSubdomainAdaptor< Dim >::NanoflannMeshSubdomainAdaptor().
|
private |
Definition at line 122 of file NanoflannMeshAdaptor.h.
Referenced by NanoflannMeshSubdomainAdaptor< Dim >::kdtree_distance(), NanoflannMeshSubdomainAdaptor< Dim >::kdtree_get_point_count(), NanoflannMeshSubdomainAdaptor< Dim >::kdtree_get_pt(), and NanoflannMeshSubdomainAdaptor< Dim >::NanoflannMeshSubdomainAdaptor().
|
private |
Definition at line 125 of file NanoflannMeshAdaptor.h.
Referenced by NanoflannMeshSubdomainAdaptor< Dim >::NanoflannMeshSubdomainAdaptor().