mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Merged intersection box interactive manipulation
This commit is contained in:
@@ -104,6 +104,24 @@ cvf::Vec3d RimIntersectionBox::boxSize() const
|
||||
return cvf::Vec3d(m_maxXCoord, m_maxYCoord, m_maxDepth) - cvf::Vec3d(m_minXCoord, m_minYCoord, m_minDepth);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionBox::setFromOriginAndSize(const cvf::Vec3d& origin, const cvf::Vec3d& size)
|
||||
{
|
||||
m_minXCoord = origin.x();
|
||||
m_minYCoord = origin.y();
|
||||
m_minZCoord = origin.z();
|
||||
|
||||
m_maxXCoord = origin.x() + size.x();
|
||||
m_maxYCoord = origin.y() + size.y();
|
||||
m_maxZCoord = origin.z() + size.z();
|
||||
|
||||
updateConnectedEditors();
|
||||
|
||||
rebuildGeometryAndScheduleCreateDisplayModel();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user