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
19namespace MeshToolsLib
20{
21
32template <typename Iterator>
33void 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
Definition of the Point3d class.
Eigen::Vector3d const & asEigenVector3d() const
Definition Point3d.h:64
void moveMeshNodes(Iterator begin, Iterator end, Eigen::Vector3d const &displacement)