mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Geomech frames support (#9678)
Support for showing frames in geomech data.
This commit is contained in:
@@ -70,7 +70,10 @@ RivTensorResultPartMgr::~RivTensorResultPartMgr()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivTensorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicList* model, size_t frameIndex ) const
|
||||
void RivTensorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicList* model,
|
||||
int viewerStepIndex,
|
||||
int localTimeStepIndex,
|
||||
int frameIndex ) const
|
||||
{
|
||||
CVF_ASSERT( model );
|
||||
|
||||
@@ -93,7 +96,8 @@ void RivTensorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicL
|
||||
|
||||
for ( int partIdx = 0; partIdx < femParts->partCount(); partIdx++ )
|
||||
{
|
||||
std::vector<caf::Ten3f> vertexTensors = resultCollection->tensors( address, partIdx, (int)frameIndex );
|
||||
std::vector<caf::Ten3f> vertexTensors =
|
||||
resultCollection->tensors( address, partIdx, localTimeStepIndex, frameIndex );
|
||||
if ( vertexTensors.empty() ) continue;
|
||||
|
||||
const RigFemPart* part = femParts->part( partIdx );
|
||||
@@ -108,7 +112,7 @@ void RivTensorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicL
|
||||
calculatePrincipalsAndDirections( elmTensors, &elmPrincipals, &elmPrincipalDirections );
|
||||
|
||||
std::vector<RivGeoMechPartMgrCache::Key> partKeys =
|
||||
m_rimReservoirView->vizLogic()->keysToVisiblePartMgrs( (int)frameIndex );
|
||||
m_rimReservoirView->vizLogic()->keysToVisiblePartMgrs( viewerStepIndex );
|
||||
|
||||
RigFemPartNodes nodes = part->nodes();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user