PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Allows custom point cloud data structure to interface with nanoflann. See https://github.com/jlblancoc/nanoflann for more details. More...
#include <nflannSetup.h>
Public Types | |
typedef double | coord_t |
Define coordinate type. | |
Public Member Functions | |
PointCloudAdaptor (const PointCloud &obj) | |
Constructor. | |
const PointCloud & | pointCloud () const |
Get vector of points. | |
size_t | kdtree_get_point_count () const |
Get number of points in point cloud. | |
coord_t | kdtree_get_pt (const size_t idx, const size_t dim) const |
Get specific coordinate of a point. | |
template<class BBOX > | |
bool | kdtree_get_bbox (BBOX &) const |
Optional bounding-box computation: return false to default to a standard bbox computation loop. Return true if the BBOX was already computed by the class and returned in "bb" so it can be avoided to redo it again. Look at bb.size() to find out the expected dimensionality (e.g. 2 or 3 for point clouds) | |
Data Fields | |
const PointCloud & | d_obj |
Const reference to list of points. | |
Allows custom point cloud data structure to interface with nanoflann. See https://github.com/jlblancoc/nanoflann for more details.
Definition at line 26 of file nflannSetup.h.
typedef double nsearch::PointCloudAdaptor::coord_t |
Define coordinate type.
Definition at line 28 of file nflannSetup.h.
|
inline |
Constructor.
obj | Vector of points |
Definition at line 38 of file nflannSetup.h.
|
inline |
Optional bounding-box computation: return false to default to a standard bbox computation loop. Return true if the BBOX was already computed by the class and returned in "bb" so it can be avoided to redo it again. Look at bb.size() to find out the expected dimensionality (e.g. 2 or 3 for point clouds)
Definition at line 75 of file nflannSetup.h.
|
inline |
Get number of points in point cloud.
Definition at line 52 of file nflannSetup.h.
References pointCloud().
|
inline |
Get specific coordinate of a point.
idx | Id of a point |
dim | Coordinate id (e.g. 0, 1, 2) |
Definition at line 62 of file nflannSetup.h.
References pointCloud().
|
inline |
Get vector of points.
Definition at line 45 of file nflannSetup.h.
References d_obj.
Referenced by kdtree_get_point_count(), and kdtree_get_pt().
const PointCloud& nsearch::PointCloudAdaptor::d_obj |
Const reference to list of points.
Definition at line 31 of file nflannSetup.h.
Referenced by pointCloud().