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:
@@ -92,10 +92,8 @@ void RivIntersectionGeometryGenerator::calculateArrays()
|
|||||||
sectionBBox.add(p1);
|
sectionBBox.add(p1);
|
||||||
sectionBBox.add(p2);
|
sectionBBox.add(p2);
|
||||||
|
|
||||||
|
|
||||||
cvf::Vec3d maxHeightVec;
|
cvf::Vec3d maxHeightVec;
|
||||||
|
|
||||||
double maxSectionHeight = sectionBBox.radius();
|
|
||||||
double maxSectionHeightUp;
|
double maxSectionHeightUp;
|
||||||
double maxSectionHeightDown;
|
double maxSectionHeightDown;
|
||||||
|
|
||||||
@@ -121,7 +119,7 @@ void RivIntersectionGeometryGenerator::calculateArrays()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
maxHeightVec = m_extrusionDirection*maxSectionHeight;
|
maxHeightVec = m_extrusionDirection*gridBBox.radius();
|
||||||
|
|
||||||
sectionBBox.add(p1 + maxHeightVec);
|
sectionBBox.add(p1 + maxHeightVec);
|
||||||
sectionBBox.add(p1 - maxHeightVec);
|
sectionBBox.add(p1 - maxHeightVec);
|
||||||
|
|||||||
Reference in New Issue
Block a user