#6934 Fix incorrect comparison for extraction bounding box.

This commit is contained in:
Kristian Bendiksen
2020-11-16 15:32:02 +01:00
parent 223cf5357f
commit 4ce0a6ed15

View File

@@ -1017,7 +1017,7 @@ bool RimStimPlanModel::findThicknessTargetPoints( cvf::Vec3d& topPosition, cvf::
cvf::BoundingBox geometryBoundingBox( allCellsBoundingBox );
// Use smaller depth bounding box for extraction if configured
if ( m_extractionDepthTop > 0.0 && m_extractionDepthBottom > 0.0 && m_extractionDepthTop > m_extractionDepthBottom )
if ( m_extractionDepthTop > 0.0 && m_extractionDepthBottom > 0.0 && m_extractionDepthTop < m_extractionDepthBottom )
{
cvf::Vec3d bbMin( allCellsBoundingBox.min().x(), allCellsBoundingBox.min().y(), -m_extractionDepthBottom );
cvf::Vec3d bbMax( allCellsBoundingBox.max().x(), allCellsBoundingBox.max().y(), -m_extractionDepthTop );