Skip to content
Snippets Groups Projects
Commit 9ad87dd2 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App] MeshToRaster; Use special ctor for Vector3.

Avoids an implicit conversion to Vector3 of both arguments.
parent 01e9c15c
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment