mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#2219 Intersections: Fix max height of intersection bug
This commit is contained in:
1 parent
99dd255ee8
commit
8ab70887c3
1 file changed
+1
-3
+1
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user