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
8
#include "
MathLib/Point3dWithID.h
"
9
10
namespace
MeshToolsLib
11
{
12
class
MeshRevision
;
13
}
14
15
namespace
MeshLib
16
{
20
class
Node
:
public
MathLib::Point3dWithID
21
{
22
/* friend classes: */
23
friend
class
Mesh
;
24
friend
class
MeshToolsLib::MeshRevision
;
25
26
public
:
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
45
namespace
fmt
46
{
47
template
<>
48
struct
formatter<::
MeshLib::Node
> : ostream_formatter
49
{
50
};
51
}
// namespace fmt
Point3dWithID.h
MathLib::Point3dWithID
Definition
Point3dWithID.h:16
MeshLib::Node
Definition
Node.h:21
MeshLib::Node::operator<<
friend std::ostream & operator<<(std::ostream &os, Node const &n)
Definition
Node.cpp:26
MeshLib::Node::Mesh
friend class Mesh
Definition
Node.h:23
MeshLib::Node::Node
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
MeshToolsLib::MeshRevision
Definition
MeshRevision.h:25
MeshLib
Definition
ProjectData.h:30
MeshLib::MeshItemType::Node
@ Node
Definition
MeshEnums.h:13
MeshToolsLib
Definition
Node.h:11
fmt
Definition
AABB.h:277
MeshLib
Node.h
Generated by
1.14.0