DataTransferKit - Multiphysics Solution Transfer Services  2.0
Public Types | Public Member Functions | List of all members
DataTransferKit::NanoflannTree< DIM > Class Template Reference

Spatial searching for point clouds. More...

#include <DTK_StaticSearchTree.hpp>

Inherits DataTransferKit::StaticSearchTree.

Public Types

typedef nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor< double, PointCloud< DIM > >, PointCloud< DIM >, DIM, unsigned > TreeType
 Tree typedef. More...
 

Public Member Functions

 NanoflannTree (const Teuchos::ArrayView< const double > &points, const unsigned max_leaf_size)
 Constructor. More...
 
Teuchos::Array< unsigned > nnSearch (const Teuchos::ArrayView< const double > &point, const unsigned num_neighbors) const
 Perform an n-nearest neighbor search. More...
 
Teuchos::Array< unsigned > radiusSearch (const Teuchos::ArrayView< const double > &point, const double radius) const
 Perform a nearest neighbor search within a specified radius. More...
 

Detailed Description

template<int DIM>
class DataTransferKit::NanoflannTree< DIM >

Spatial searching for point clouds.

Definition at line 126 of file DTK_StaticSearchTree.hpp.

Member Typedef Documentation

template<int DIM>
typedef nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor<double, PointCloud<DIM> >, PointCloud<DIM>, DIM, unsigned> DataTransferKit::NanoflannTree< DIM >::TreeType

Tree typedef.

Definition at line 133 of file DTK_StaticSearchTree.hpp.

Constructor & Destructor Documentation

template<int DIM>
DataTransferKit::NanoflannTree< DIM >::NanoflannTree ( const Teuchos::ArrayView< const double > &  points,
const unsigned  max_leaf_size 
)

Constructor.

Definition at line 146 of file DTK_StaticSearchTree_impl.hpp.

Member Function Documentation

template<int DIM>
Teuchos::Array< unsigned > DataTransferKit::NanoflannTree< DIM >::nnSearch ( const Teuchos::ArrayView< const double > &  point,
const unsigned  num_neighbors 
) const

Perform an n-nearest neighbor search.

Definition at line 165 of file DTK_StaticSearchTree_impl.hpp.

template<int DIM>
Teuchos::Array< unsigned > DataTransferKit::NanoflannTree< DIM >::radiusSearch ( const Teuchos::ArrayView< const double > &  point,
const double  radius 
) const

Perform a nearest neighbor search within a specified radius.

Definition at line 182 of file DTK_StaticSearchTree_impl.hpp.


The documentation for this class was generated from the following files: