An algorithm finding mesh elements within a certain tolerance from a given point.
The algorithm will find a single element if for points lying within a mesh element (unless the tolerance is very high), and will find multiple elements for points on element faces/edges/corners.
Definition at line 43 of file FindCellsForPoints.h.
#include <FindCellsForPoints.h>
Public Member Functions | |
void | initialize (vtkUnstructuredGrid *const bulk_mesh) |
std::vector< vtkIdType > | findCellIds (Eigen::Vector3d const &coords, double const tolerance) |
vtkSmartPointer< vtkUnstructuredGrid > | find (Eigen::Vector3d const &coords, double const tolerance) |
Private Member Functions | |
vtkSmartPointer< vtkIdList > | findCellIdsImpl (Eigen::Vector3d const &coords, double const tolerance) |
Private Attributes | |
vtkSmartPointer< vtkDataSet > | bulk_mesh_ |
vtkSmartPointer< vtkCellTreeLocator > | locator_ |
|
inline |
Definition at line 82 of file FindCellsForPoints.h.
References bulk_mesh_, and findCellIdsImpl().
Referenced by ApplicationUtils::computeNaturalCoords().
|
inline |
Definition at line 71 of file FindCellsForPoints.h.
References findCellIdsImpl().
|
inlineprivate |
Definition at line 97 of file FindCellsForPoints.h.
References locator_.
Referenced by find(), and findCellIds().
|
inline |
Definition at line 46 of file FindCellsForPoints.h.
References bulk_mesh_, and locator_.
Referenced by ApplicationUtils::computeNaturalCoords().
|
private |
Definition at line 111 of file FindCellsForPoints.h.
Referenced by find(), and initialize().
|
private |
Definition at line 112 of file FindCellsForPoints.h.
Referenced by findCellIdsImpl(), and initialize().