From 6d2110a390c21f57f16f4d453aafaaafe66c66fd Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 10 Jun 2022 08:55:42 +0200
Subject: [PATCH] [MeL/MeshEditing] Use MaL::Point3d instead MeL::Node

---
 MeshLib/MeshEditing/ProjectPointOnMesh.cpp | 4 ++--
 MeshLib/MeshEditing/ProjectPointOnMesh.h   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MeshLib/MeshEditing/ProjectPointOnMesh.cpp b/MeshLib/MeshEditing/ProjectPointOnMesh.cpp
index 095bb9d63b4..3ad783949cb 100644
--- a/MeshLib/MeshEditing/ProjectPointOnMesh.cpp
+++ b/MeshLib/MeshEditing/ProjectPointOnMesh.cpp
@@ -19,7 +19,7 @@ namespace MeshLib
 namespace ProjectPointOnMesh
 {
 Element const* getProjectedElement(std::vector<const Element*> const& elements,
-                                   Node const& node)
+                                   MathLib::Point3d const& node)
 {
     auto is_right_of = [&node](Node const& a, Node const& b) {
         return GeoLib::getOrientationFast(node, a, b) ==
@@ -55,7 +55,7 @@ Element const* getProjectedElement(std::vector<const Element*> const& elements,
     return nullptr;
 }
 
-double getElevation(Element const& element, Node const& node)
+double getElevation(Element const& element, MathLib::Point3d const& node)
 {
     Eigen::Vector3d const v =
         node.asEigenVector3d() - element.getNode(0)->asEigenVector3d();
diff --git a/MeshLib/MeshEditing/ProjectPointOnMesh.h b/MeshLib/MeshEditing/ProjectPointOnMesh.h
index a4aec061692..38bf4a6dc99 100644
--- a/MeshLib/MeshEditing/ProjectPointOnMesh.h
+++ b/MeshLib/MeshEditing/ProjectPointOnMesh.h
@@ -22,11 +22,11 @@ namespace ProjectPointOnMesh
 /// Returns the element in which the given node is located when projected onto a
 /// mesh, or nullptr if no such element was found.
 Element const* getProjectedElement(std::vector<const Element*> const& elements,
-                                   Node const& node);
+                                   MathLib::Point3d const& node);
 
 /// Returns the z-coordinate of a point projected onto the plane defined by a
 /// mesh element.
-double getElevation(Element const& element, Node const& node);
+double getElevation(Element const& element, MathLib::Point3d const& node);
 
 }  // namespace ProjectPointOnMesh
 
-- 
GitLab