|
preCICE
|
Class to query the index trees of the mesh. More...
#include <Index.hpp>
Classes | |
| class | IndexImpl |
Public Member Functions | |
| Index (mesh::PtrMesh mesh) | |
| Index (mesh::Mesh &mesh) | |
| ~Index () | |
| VertexMatch | getClosestVertex (const Eigen::VectorXd &sourceCoord) |
| Get the closest vertex to the given vertex. | |
| std::vector< VertexID > | getClosestVertices (const Eigen::VectorXd &sourceCoord, int n) |
| Get n number of closest vertices to the given vertex. | |
| std::vector< EdgeMatch > | getClosestEdges (const Eigen::VectorXd &sourceCoord, int n) |
| Get n number of closest edges to the given vertex. | |
| std::vector< TriangleMatch > | getClosestTriangles (const Eigen::VectorXd &sourceCoord, int n) |
| Get n number of closest triangles to the given vertex. | |
| std::vector< VertexID > | getVerticesInsideBox (const mesh::Vertex ¢erVertex, double radius) |
| Return all the vertices inside the box formed by vertex and radius (boundary exclusive). | |
| std::vector< VertexID > | getVerticesInsideBox (const mesh::BoundingBox &bb) |
| Return all the vertices inside a bounding box. | |
| bool | isAnyVertexInsideBox (const mesh::Vertex ¢erVertex, double radius) |
| Returns. | |
| std::vector< TetrahedronID > | getEnclosingTetrahedra (const Eigen::VectorXd &location) |
| Return all the tetrahedra whose axis-aligned bounding box contains a vertex. | |
| ProjectionMatch | 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. | |
| ProjectionMatch | findCellOrProjection (const Eigen::VectorXd &location, int n) |
| mesh::BoundingBox | getRtreeBounds () |
| void | clear () |
| Clear the index. | |
Private Member Functions | |
| ProjectionMatch | findVertexProjection (const Eigen::VectorXd &location) |
| Closest vertex projection element is always the nearest neighbor. | |
| ProjectionMatch | findEdgeProjection (const Eigen::VectorXd &location, int n, ProjectionMatch closestVertex) |
| Find closest edge interpolation element. If cannot be found, it falls back to vertex projection. | |
| ProjectionMatch | findTriangleProjection (const Eigen::VectorXd &location, int n, ProjectionMatch closestVertex) |
| Find closest face interpolation element. If cannot be found, it falls back to first edge interpolation element, then vertex if necessary. | |
Private Attributes | |
| std::unique_ptr< IndexImpl > | _pimpl |
| mesh::Mesh * | _mesh |
| The indexed Mesh. | |
Static Private Attributes | |
| static precice::logging::Logger | _log {"query::Index"} |
| precice::query::Index::Index | ( | mesh::PtrMesh | mesh | ) |
| precice::query::Index::Index | ( | mesh::Mesh & | mesh | ) |
|
default |
| ProjectionMatch precice::query::Index::findCellOrProjection | ( | const Eigen::VectorXd & | location, |
| int | n ) |
|
private |
| 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 277 of file Index.cpp.
|
private |
|
private |
| std::vector< EdgeMatch > precice::query::Index::getClosestEdges | ( | const Eigen::VectorXd & | sourceCoord, |
| int | n ) |
| std::vector< TriangleMatch > precice::query::Index::getClosestTriangles | ( | const Eigen::VectorXd & | sourceCoord, |
| int | n ) |
| VertexMatch precice::query::Index::getClosestVertex | ( | const Eigen::VectorXd & | sourceCoord | ) |
| std::vector< VertexID > precice::query::Index::getClosestVertices | ( | const Eigen::VectorXd & | sourceCoord, |
| int | n ) |
| std::vector< TetrahedronID > precice::query::Index::getEnclosingTetrahedra | ( | const Eigen::VectorXd & | location | ) |
| mesh::BoundingBox precice::query::Index::getRtreeBounds | ( | ) |
| std::vector< VertexID > precice::query::Index::getVerticesInsideBox | ( | const mesh::BoundingBox & | bb | ) |
| std::vector< VertexID > precice::query::Index::getVerticesInsideBox | ( | const mesh::Vertex & | centerVertex, |
| double | radius ) |
| bool precice::query::Index::isAnyVertexInsideBox | ( | const mesh::Vertex & | centerVertex, |
| double | radius ) |
|
staticprivate |
|
private |
|
private |