OGS
MeshNodesOnPoint.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <vector>
7
8#include "GeoLib/Point.h"
9#include "GeoLib/Grid.h"
10
12
13#include "MeshLib/Node.h"
14
15namespace MeshLib
16{
17class Mesh;
18}
19
20namespace MeshGeoToolsLib
21{
26{
27public:
39 GeoLib::Grid<MeshLib::Node> const& mesh_grid,
40 GeoLib::Point const& pnt, double epsilon_radius,
41 SearchAllNodes search_all_nodes);
42
44 MeshLib::Mesh const& getMesh() const { return _mesh; }
45
50 std::vector<std::size_t> const& getNodeIDs() const { return _msh_node_ids; }
51
57 GeoLib::Point const& getPoint() const { return _pnt; }
58
59private:
62 std::vector<std::size_t> _msh_node_ids;
63};
64} // end namespace MeshGeoToolsLib
MeshNodesOnPoint(MeshLib::Mesh const &mesh, GeoLib::Grid< MeshLib::Node > const &mesh_grid, GeoLib::Point const &pnt, double epsilon_radius, SearchAllNodes search_all_nodes)
GeoLib::Point const & getPoint() const
std::vector< std::size_t > const & getNodeIDs() const
std::vector< std::size_t > _msh_node_ids
MeshLib::Mesh const & getMesh() const
return the mesh object