From 8ab70887c3d2151441a99ffd155699fdc40263f3 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Mon, 4 Dec 2017 10:56:57 +0100 Subject: [PATCH] #2219 Intersections: Fix max height of intersection bug --- .../Intersections/RivIntersectionGeometryGenerator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp index c33bc6ba25..ac362fd883 100644 --- a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp +++ b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp @@ -92,10 +92,8 @@ void RivIntersectionGeometryGenerator::calculateArrays() sectionBBox.add(p1); sectionBBox.add(p2); - cvf::Vec3d maxHeightVec; - double maxSectionHeight = sectionBBox.radius(); double maxSectionHeightUp; double maxSectionHeightDown; @@ -121,7 +119,7 @@ void RivIntersectionGeometryGenerator::calculateArrays() } else { - maxHeightVec = m_extrusionDirection*maxSectionHeight; + maxHeightVec = m_extrusionDirection*gridBBox.radius(); sectionBBox.add(p1 + maxHeightVec); sectionBBox.add(p1 - maxHeightVec);