mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
parent
83a9730f5b
commit
b406649e17
@ -214,7 +214,7 @@ void RivElementVectorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::Mode
|
||||
aggregatedVector += faceNormal;
|
||||
aggregatedResult += ( faceCenter - cellCenter ).getNormalized() * resultValue;
|
||||
}
|
||||
if ( aggregatedVector.length() > 0 )
|
||||
if ( aggregatedVector.length() >= result->threshold() )
|
||||
{
|
||||
tensorVisualizations.push_back(
|
||||
ElementVectorResultVisualization( cells[gcIdx].center() - offset,
|
||||
@ -272,11 +272,15 @@ void RivElementVectorResultPartMgr::appendDynamicGeometryPartsToModel( cvf::Mode
|
||||
{
|
||||
connNormal *= scaleLogarithmically( std::abs( resultValue ) );
|
||||
}
|
||||
tensorVisualizations.push_back(
|
||||
ElementVectorResultVisualization( connCenter - offset,
|
||||
connNormal,
|
||||
resultValue,
|
||||
std::cbrt( cells[conn.c1GlobIdx()].volume() / 3.0 ) ) );
|
||||
|
||||
if ( std::abs( resultValue ) >= result->threshold() )
|
||||
{
|
||||
tensorVisualizations.push_back(
|
||||
ElementVectorResultVisualization( connCenter - offset,
|
||||
connNormal,
|
||||
resultValue,
|
||||
std::cbrt( cells[conn.c1GlobIdx()].volume() / 3.0 ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -400,7 +404,7 @@ void RivElementVectorResultPartMgr::createResultColorTextureCoords(
|
||||
{
|
||||
for ( size_t vxIdx = 0; vxIdx < 7; ++vxIdx )
|
||||
{
|
||||
cvf::Vec2f texCoord = mapper->mapToTextureCoord( evrViz.result );
|
||||
cvf::Vec2f texCoord = mapper->mapToTextureCoord( std::abs( evrViz.result ) );
|
||||
textureCoords->add( texCoord );
|
||||
}
|
||||
}
|
||||
|
@ -415,6 +415,8 @@ void RimElementVectorResult::mappingRange( double& min, double& max ) const
|
||||
}
|
||||
}
|
||||
}
|
||||
max = std::max<double>( std::abs( min ), std::abs( max ) );
|
||||
min = 0.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user