#2175 Intersection: Set length in two directions

This commit is contained in:
Unknown
2017-11-24 13:57:35 +01:00
committed by Rebecca Cox
parent ea74a77978
commit e765a9ad59
4 changed files with 65 additions and 22 deletions

View File

@@ -118,7 +118,8 @@ void RicNewAzimuthDipIntersectionFeatureCmd::redo()
cvf::BoundingBox bBox = rimCase->allCellsBoundingBox();
if (bBox.isValid())
{
intersection->setHeight(cvf::Math::floor(bBox.extent()[2]));
intersection->setLengthUp(cvf::Math::floor(bBox.extent()[2] / 2));
intersection->setLengthDown(cvf::Math::floor(bBox.extent()[2] / 2));
}
m_intersectionCollection->appendIntersection(intersection);