OGS
moveMeshNodes.h
Go to the documentation of this file.
1
13
#pragma once
14
15
#include <Eigen/Core>
16
17
#include "
MathLib/Point3d.h
"
18
19
namespace
MeshToolsLib
20
{
21
32
template
<
typename
Iterator>
33
void
moveMeshNodes
(Iterator begin,
34
Iterator end,
35
Eigen::Vector3d
const
& displacement)
36
{
37
std::for_each(begin, end,
38
[&displacement](
MathLib::Point3d
* node)
39
{ node->
asEigenVector3d
() += displacement; });
40
};
41
42
}
// namespace MeshToolsLib
Point3d.h
Definition of the Point3d class.
MathLib::Point3d
Definition
Point3d.h:24
MathLib::Point3d::asEigenVector3d
Eigen::Vector3d const & asEigenVector3d() const
Definition
Point3d.h:64
MeshToolsLib
Definition
Node.h:29
MeshToolsLib::moveMeshNodes
void moveMeshNodes(Iterator begin, Iterator end, Eigen::Vector3d const &displacement)
Definition
moveMeshNodes.h:33
MeshToolsLib
MeshEditing
moveMeshNodes.h
Generated by
1.11.0