OGS
PartitionNodesByCoordinateMatch.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 <optional>
7#include <vector>
8
9namespace MeshLib
10{
11class Node;
12} // namespace MeshLib
13
14namespace GeoLib
15{
16class AABB;
17} // namespace GeoLib
18
19namespace MeshToolsLib
20{
22{
23 std::vector<MeshLib::Node*> paired_nodes;
24 std::optional<std::vector<std::size_t>> id_mapping;
25 std::optional<std::vector<MeshLib::Node*>> non_paired_nodes;
26};
27
50 std::vector<MeshLib::Node*> const& node_vector,
51 std::vector<MeshLib::Node*> const& tool_node_vector,
52 GeoLib::AABB const& aabb,
53 bool const return_non_paired_nodes = true);
54
55} // namespace MeshToolsLib
Class AABB is an axis aligned bounding box around a given set of geometric points of (template) type ...
Definition AABB.h:45
NodesPartitionResult partitionNodesByCoordinateMatch(std::vector< MeshLib::Node * > const &node_vector, std::vector< MeshLib::Node * > const &tool_node_vector, GeoLib::AABB const &aabb, bool const return_non_paired_nodes)
std::optional< std::vector< MeshLib::Node * > > non_paired_nodes
std::optional< std::vector< std::size_t > > id_mapping