mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2219 Intersections: Fix max height of intersection bug
This commit is contained in:
parent
99dd255ee8
commit
8ab70887c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user