#2219 Intersections: Fix max height of intersection bug

This commit is contained in:
Rebecca Cox 2017-12-04 10:56:57 +01:00
parent 99dd255ee8
commit 8ab70887c3

View File

@ -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);