(#694) Fixed missing assigment

This commit is contained in:
Magne Sjaastad 2015-12-09 12:26:32 +01:00
parent a608904bea
commit 5e6fc505d0

View File

@ -90,7 +90,7 @@ void RivWellPathSourceInfo::normalizedIntersection(size_t triangleIndex, const c
double norm = 0.0;
cvf::Vec3d pointOnLine = cvf::GeometryTools::projectPointOnLine(segmentStart, segmentEnd, globalIntersection, &norm);
cvf::Math::clamp(norm, 0.0, 1.0);
norm = cvf::Math::clamp(norm, 0.0, 1.0);
*firstSegmentIndex = segIndex;
*normalizedSegmentIntersection = norm;