A k-d tree search class (specialization) that allows us to search for nodes from one mesh (source) whose control volumes potentially overlap the control volumes of a node from the second mesh (target) More...
#include <search_kdtree.h>
Public Member Functions | |
SearchKDTree ()=delete | |
Default constructor (disabled) More... | |
SearchKDTree (const SourceMeshType &source_mesh, const TargetMeshType &target_mesh) | |
Builds the k-d tree for searching for intersection candidates. More... | |
std::vector< int > | operator() (const int nodeId) const |
Destructor. More... | |
Detailed Description
template<int D, typename SourceMeshType, typename TargetMeshType>
class Portage::SearchKDTree< D, Entity_kind::NODE, SourceMeshType, TargetMeshType >
A k-d tree search class (specialization) that allows us to search for nodes from one mesh (source) whose control volumes potentially overlap the control volumes of a node from the second mesh (target)
- Template Parameters
-
D The dimension of the problem space. SourceMeshType The mesh type of the source mesh. TargetMeshType The mesh type of the target mesh.
Constructor & Destructor Documentation
◆ SearchKDTree() [1/2]
|
delete |
Default constructor (disabled)
◆ SearchKDTree() [2/2]
|
inline |
Builds the k-d tree for searching for intersection candidates.
- Parameters
-
[in] source_mesh Mesh in which we search for candidates [in] target_mesh Mesh containing entity for which we search
Constructor for k-d tree for finding nodes from a source mesh whose control volumes overlap the control volume of a node from the target mesh.
Member Function Documentation
◆ operator()()
|
inline |
Destructor.
Find the source mesh entities whose control volumes potentially overlap control volumes of a given target entity
- Parameters
-
[in] nodeId The index of the node in the target mesh for which we wish to find the candidate "overlapping" nodes in the source mesh. [in,out] candidates Pointer to a vector of potential candidate nodes in the source mesh.
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/search/search_kdtree.h