OGS
|
This class computes the ids of the mesh nodes along a polyline.
The mesh nodes are sorted as follow: [ ids of sorted nodes according to their distance to the starting point of ply ]
Definition at line 36 of file MeshNodesAlongPolyline.h.
#include <MeshNodesAlongPolyline.h>
Public Member Functions | |
MeshNodesAlongPolyline (MeshLib::Mesh const &mesh, GeoLib::Polyline const &ply, double epsilon_radius, SearchAllNodes search_all_nodes) | |
MeshLib::Mesh const & | getMesh () const |
return the mesh object | |
std::vector< std::size_t > const & | getNodeIDs () const |
GeoLib::Polyline const & | getPolyline () const |
Private Attributes | |
MeshLib::Mesh const & | _mesh |
GeoLib::Polyline const & | _ply |
std::vector< std::size_t > | _msh_node_ids |
std::vector< double > | _dist_of_proj_node_from_ply_start |
MeshGeoToolsLib::MeshNodesAlongPolyline::MeshNodesAlongPolyline | ( | MeshLib::Mesh const & | mesh, |
GeoLib::Polyline const & | ply, | ||
double | epsilon_radius, | ||
SearchAllNodes | search_all_nodes ) |
Constructor of object, that search mesh nodes along a GeoLib::Polyline polyline within a given search radius. So the polyline is something like a tube.
mesh | Mesh the search will be performed on. |
ply | Along the GeoLib::Polyline ply the mesh nodes are searched. |
epsilon_radius | Search / tube radius |
search_all_nodes | switch between searching all mesh nodes and searching the base nodes. |
Definition at line 24 of file MeshNodesAlongPolyline.cpp.
References _dist_of_proj_node_from_ply_start, _mesh, _msh_node_ids, _ply, MeshLib::Mesh::computeNumberOfBaseNodes(), GeoLib::Polyline::getDistanceAlongPolyline(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getNumberOfNodes(), BaseLib::quicksort(), and MeshGeoToolsLib::Yes.
MeshLib::Mesh const & MeshGeoToolsLib::MeshNodesAlongPolyline::getMesh | ( | ) | const |
std::vector< std::size_t > const & MeshGeoToolsLib::MeshNodesAlongPolyline::getNodeIDs | ( | ) | const |
Access the vector of mesh node ids.
Definition at line 58 of file MeshNodesAlongPolyline.cpp.
References _msh_node_ids.
Referenced by MeshGeoToolsLib::appendLinesAlongPolylines().
GeoLib::Polyline const & MeshGeoToolsLib::MeshNodesAlongPolyline::getPolyline | ( | ) | const |
Deploying this method the user can get access to the underlying GeoLib::Polyline.
Definition at line 63 of file MeshNodesAlongPolyline.cpp.
References _ply.
Referenced by MeshGeoToolsLib::MeshNodeSearcher::getMeshNodeIDs().
|
private |
Definition at line 74 of file MeshNodesAlongPolyline.h.
Referenced by MeshNodesAlongPolyline().
|
private |
Definition at line 71 of file MeshNodesAlongPolyline.h.
Referenced by MeshNodesAlongPolyline(), and getMesh().
|
private |
Definition at line 73 of file MeshNodesAlongPolyline.h.
Referenced by MeshNodesAlongPolyline(), and getNodeIDs().
|
private |
Definition at line 72 of file MeshNodesAlongPolyline.h.
Referenced by MeshNodesAlongPolyline(), and getPolyline().