From 9ad87dd2fb000e63e84500b08d5d611d9c109b8a Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Fri, 1 Mar 2019 22:57:52 +0100 Subject: [PATCH] [App] MeshToRaster; Use special ctor for Vector3. Avoids an implicit conversion to Vector3 of both arguments. --- Applications/Utils/FileConverter/MeshToRaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Utils/FileConverter/MeshToRaster.cpp b/Applications/Utils/FileConverter/MeshToRaster.cpp index cf97d4a7810..b7bbe01d0d0 100644 --- a/Applications/Utils/FileConverter/MeshToRaster.cpp +++ b/Applications/Utils/FileConverter/MeshToRaster.cpp @@ -69,7 +69,7 @@ static MeshLib::Element const* getProjectedElement( static double getElevation(MeshLib::Element const& element, MeshLib::Node const& node) { - MathLib::Vector3 const v = node - *element.getNode(0); + MathLib::Vector3 const v{*element.getNode(0), node}; MathLib::Vector3 const n = MeshLib::FaceRule::getSurfaceNormal(&element).getNormalizedVector(); return node[2] - scalarProduct(n, v) * n[2]; -- GitLab