mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1040 - pre-proto - Converting facture coordinates to display coordinates for visualization. Fractures not yet shown at correct possition.
This commit is contained in:
@@ -82,6 +82,10 @@ void RimFracture::computeGeometry()
|
||||
}
|
||||
|
||||
// TODO: Modify coords by fracture center and orientation
|
||||
for (int i = 0; i < nodeCoords.size(); i++ )
|
||||
{
|
||||
nodeCoords[i] = nodeCoords[i] + static_cast<cvf::Vec3f>(center);
|
||||
}
|
||||
|
||||
m_rigFracture->setGeometry(polygonIndices, nodeCoords);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RigCaseData.h"
|
||||
#include "RigMainGrid.h"
|
||||
#include "RigTesselatorTools.h"
|
||||
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimFractureDefinition.h"
|
||||
#include "RimFractureDefinitionCollection.h"
|
||||
#include "RimOilField.h"
|
||||
@@ -29,18 +36,13 @@
|
||||
#include "cafPdmFieldHandle.h"
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmUiItem.h"
|
||||
|
||||
#include "QToolBox"
|
||||
#include "QList"
|
||||
#include "cvfVector3.h"
|
||||
#include "RigTesselatorTools.h"
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RigCaseData.h"
|
||||
#include "RigMainGrid.h"
|
||||
#include "cafDisplayCoordTransform.h"
|
||||
|
||||
#include "cvfVector3.h"
|
||||
|
||||
#include <QToolBox>
|
||||
#include <QList>
|
||||
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimSimWellFracture, "SimWellFracture");
|
||||
@@ -121,11 +123,7 @@ cvf::Vec3d RimSimWellFracture::centerPointForFracture()
|
||||
size_t gridCellIndex = mainGrid->cellIndexFromIJK(m_i, m_j, m_k);
|
||||
const RigCell& rigCell = mainGrid->cell(gridCellIndex);
|
||||
cvf::Vec3d center = rigCell.center();
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = mainView->displayCoordTransform();
|
||||
cvf::Vec3d displayCoord = transForm->transformToDisplayCoord(center);
|
||||
|
||||
return displayCoord;
|
||||
return center;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -648,13 +648,16 @@ void RimView::addWellPathsToModel(cvf::ModelBasicList* wellPathModelBasicList,
|
||||
RimWellPathCollection* wellPathCollection = oilFields ? oilFields->wellPathCollection() : NULL;
|
||||
RivWellPathCollectionPartMgr* wellPathCollectionPartMgr = wellPathCollection ? wellPathCollection->wellPathCollectionPartMgr() : NULL;
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
|
||||
|
||||
if (wellPathCollectionPartMgr)
|
||||
{
|
||||
wellPathCollectionPartMgr->appendStaticGeometryPartsToModel(wellPathModelBasicList,
|
||||
displayModelOffset,
|
||||
scaleTransform,
|
||||
characteristicCellSize,
|
||||
wellPathClipBoundingBox);
|
||||
wellPathClipBoundingBox,
|
||||
transForm.p());
|
||||
}
|
||||
|
||||
wellPathModelBasicList->updateBoundingBoxesRecursive();
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RigTesselatorTools.h"
|
||||
|
||||
#include "RimFractureDefinition.h"
|
||||
#include "RimFractureDefinitionCollection.h"
|
||||
#include "RimOilField.h"
|
||||
@@ -30,10 +32,10 @@
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmUiItem.h"
|
||||
|
||||
#include "QToolBox"
|
||||
#include "QList"
|
||||
#include "cvfVector3.h"
|
||||
#include "RigTesselatorTools.h"
|
||||
|
||||
#include <QToolBox>
|
||||
#include <QList>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user