From 465a28dfe93c7256f754b5f7d3feee709545e8f7 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 30 Sep 2016 10:28:43 +0200 Subject: [PATCH] #884 Fixed change from z-coord to depth --- .../ProjectDataModel/RimIntersectionBox.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimIntersectionBox.cpp b/ApplicationCode/ProjectDataModel/RimIntersectionBox.cpp index 1aeb60410c..5f1ca116e4 100644 --- a/ApplicationCode/ProjectDataModel/RimIntersectionBox.cpp +++ b/ApplicationCode/ProjectDataModel/RimIntersectionBox.cpp @@ -109,13 +109,13 @@ cvf::Vec3d RimIntersectionBox::boxSize() const //-------------------------------------------------------------------------------------------------- void RimIntersectionBox::setFromOriginAndSize(const cvf::Vec3d& origin, const cvf::Vec3d& size) { - m_minXCoord = origin.x(); - m_minYCoord = origin.y(); - m_minZCoord = origin.z(); + m_minXCoord = origin.x(); + m_minYCoord = origin.y(); + m_minDepth = -(origin.z() + size.z()); - m_maxXCoord = origin.x() + size.x(); - m_maxYCoord = origin.y() + size.y(); - m_maxZCoord = origin.z() + size.z(); + m_maxXCoord = origin.x() + size.x(); + m_maxYCoord = origin.y() + size.y(); + m_maxDepth = -origin.z(); updateConnectedEditors();