OGS
Node.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 <spdlog/fmt/ostr.h>
7
9
10namespace MeshToolsLib
11{
12class MeshRevision;
13}
14
15namespace MeshLib
16{
21{
22 /* friend classes: */
23 friend class Mesh;
25
26public:
28 explicit Node(const double coords[3],
29 std::size_t id = std::numeric_limits<std::size_t>::max());
30
32 explicit Node(std::array<double, 3> const& coords,
33 std::size_t id = std::numeric_limits<std::size_t>::max());
34
36 Node(double x,
37 double y,
38 double z,
39 std::size_t id = std::numeric_limits<std::size_t>::max());
40
41 friend std::ostream& operator<<(std::ostream& os, Node const& n);
42}; /* class */
43} // namespace MeshLib
44
45namespace fmt
46{
47template <>
48struct formatter<::MeshLib::Node> : ostream_formatter
49{
50};
51} // namespace fmt
friend std::ostream & operator<<(std::ostream &os, Node const &n)
Definition Node.cpp:26
friend class Mesh
Definition Node.h:23
Node(const double coords[3], std::size_t id=std::numeric_limits< std::size_t >::max())
Constructor using a coordinate array.
Definition Node.cpp:10
Definition AABB.h:277