Class to query the index trees of the mesh.
More...
#include <Index.hpp>
Class to query the index trees of the mesh.
Definition at line 65 of file Index.hpp.
◆ Index() [1/2]
◆ Index() [2/2]
◆ ~Index()
precice::query::Index::~Index |
( |
| ) |
|
|
default |
◆ clear()
void precice::query::Index::clear |
( |
| ) |
|
◆ findCellOrProjection()
ProjectionMatch precice::query::Index::findCellOrProjection |
( |
const Eigen::VectorXd & | location, |
|
|
int | n ) |
◆ findEdgeProjection()
Find closest edge interpolation element. If cannot be found, it falls back to vertex projection.
Definition at line 318 of file Index.cpp.
◆ findNearestProjection()
ProjectionMatch precice::query::Index::findNearestProjection |
( |
const Eigen::VectorXd & | location, |
|
|
int | n ) |
Find the closest interpolation element to the given location. If exists, triangle or edge projection element is returned. If not vertex projection element, which is the nearest neighbor is returned.
param[in] sourceVertex param[in] n how many nearest edges/faces are going to be checked
param[out] pair of interpolation and the distance to corresponding vertex/edge/triangle
Definition at line 275 of file Index.cpp.
◆ findTriangleProjection()
Find closest face interpolation element. If cannot be found, it falls back to first edge interpolation element, then vertex if necessary.
Definition at line 342 of file Index.cpp.
◆ findVertexProjection()
ProjectionMatch precice::query::Index::findVertexProjection |
( |
const Eigen::VectorXd & | location | ) |
|
|
private |
Closest vertex projection element is always the nearest neighbor.
Definition at line 312 of file Index.cpp.
◆ getClosestEdges()
std::vector< EdgeMatch > precice::query::Index::getClosestEdges |
( |
const Eigen::VectorXd & | sourceCoord, |
|
|
int | n ) |
Get n number of closest edges to the given vertex.
Definition at line 197 of file Index.cpp.
◆ getClosestTriangles()
Get n number of closest triangles to the given vertex.
Definition at line 210 of file Index.cpp.
◆ getClosestVertex()
VertexMatch precice::query::Index::getClosestVertex |
( |
const Eigen::VectorXd & | sourceCoord | ) |
|
Get the closest vertex to the given vertex.
Definition at line 171 of file Index.cpp.
◆ getClosestVertices()
std::vector< VertexID > precice::query::Index::getClosestVertices |
( |
const Eigen::VectorXd & | sourceCoord, |
|
|
int | n ) |
Get n number of closest vertices to the given vertex.
Definition at line 184 of file Index.cpp.
◆ getEnclosingTetrahedra()
Return all the tetrahedra whose axis-aligned bounding box contains a vertex.
Definition at line 263 of file Index.cpp.
◆ getRtreeBounds()
◆ getVerticesInsideBox() [1/2]
Return all the vertices inside a bounding box.
Definition at line 253 of file Index.cpp.
◆ getVerticesInsideBox() [2/2]
Return all the vertices inside the box formed by vertex and radius (boundary exclusive)
Definition at line 223 of file Index.cpp.
◆ isAnyVertexInsideBox()
bool precice::query::Index::isAnyVertexInsideBox |
( |
const mesh::Vertex & | centerVertex, |
|
|
double | radius ) |
◆ _log
◆ _mesh
◆ _pimpl
The documentation for this class was generated from the following files: