mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
This commit is contained in:
1 parent
10f0abc9b5
commit
c82df63e10
710 files changed
+3167
-4721
No files matched your search
@@ -297,8 +297,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts( const caf::DisplayCoordTransfor
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( !virtualPerforationResult->showConnectionFactorsOnClosedConnections() &&
|
||||
!wResCell->m_isOpen )
|
||||
if ( !virtualPerforationResult->showConnectionFactorsOnClosedConnections() && !wResCell->m_isOpen )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -329,14 +328,16 @@ void RivSimWellPipesPartMgr::buildWellPipeParts( const caf::DisplayCoordTransfor
|
||||
if ( !completionVizDataItems.empty() )
|
||||
{
|
||||
double radius = pipeRadius * virtualPerforationResult->geometryScaleFactor();
|
||||
radius *= 2.0; // Enlarge the radius slightly to make the connection factor visible if geometry scale factor is set to 1.0
|
||||
radius *= 2.0; // Enlarge the radius slightly to make the connection factor visible if geometry
|
||||
// scale factor is set to 1.0
|
||||
|
||||
pbd.m_connectionFactorGeometryGenerator =
|
||||
new RivWellConnectionFactorGeometryGenerator( completionVizDataItems, radius );
|
||||
|
||||
cvf::ScalarMapper* scalarMapper = virtualPerforationResult->legendConfig()->scalarMapper();
|
||||
cvf::ref<cvf::Part> part = pbd.m_connectionFactorGeometryGenerator
|
||||
->createSurfacePart( scalarMapper, eclipseView->isLightingDisabled() );
|
||||
cvf::ref<cvf::Part> part =
|
||||
pbd.m_connectionFactorGeometryGenerator->createSurfacePart( scalarMapper,
|
||||
eclipseView->isLightingDisabled() );
|
||||
if ( part.notNull() )
|
||||
{
|
||||
cvf::ref<RivSimWellConnectionSourceInfo> simWellSourceInfo =
|
||||
@@ -465,8 +466,8 @@ void RivSimWellPipesPartMgr::updatePipeResultColor( size_t frameIndex )
|
||||
|
||||
if ( wellBranch.m_surfaceDrawable.notNull() )
|
||||
{
|
||||
cvf::ref<cvf::Vec2fArray> surfTexCoords = const_cast<cvf::Vec2fArray*>(
|
||||
wellBranch.m_surfaceDrawable->textureCoordArray() );
|
||||
cvf::ref<cvf::Vec2fArray> surfTexCoords =
|
||||
const_cast<cvf::Vec2fArray*>( wellBranch.m_surfaceDrawable->textureCoordArray() );
|
||||
if ( surfTexCoords.isNull() )
|
||||
{
|
||||
surfTexCoords = new cvf::Vec2fArray;
|
||||
@@ -479,7 +480,8 @@ void RivSimWellPipesPartMgr::updatePipeResultColor( size_t frameIndex )
|
||||
|
||||
if ( wResFrame.m_isOpen )
|
||||
{
|
||||
// Use slightly larger geometry for open wells to avoid z-fighting when two wells are located at the same position
|
||||
// Use slightly larger geometry for open wells to avoid z-fighting when two wells are located at the
|
||||
// same position
|
||||
|
||||
wellBranch.m_surfacePart->setDrawable( wellBranch.m_largeSurfaceDrawable.p() );
|
||||
}
|
||||
@@ -494,8 +496,8 @@ void RivSimWellPipesPartMgr::updatePipeResultColor( size_t frameIndex )
|
||||
// Find or create texture coords array for pipe center line
|
||||
if ( wellBranch.m_centerLineDrawable.notNull() )
|
||||
{
|
||||
cvf::ref<cvf::Vec2fArray> lineTexCoords = const_cast<cvf::Vec2fArray*>(
|
||||
wellBranch.m_centerLineDrawable->textureCoordArray() );
|
||||
cvf::ref<cvf::Vec2fArray> lineTexCoords =
|
||||
const_cast<cvf::Vec2fArray*>( wellBranch.m_centerLineDrawable->textureCoordArray() );
|
||||
|
||||
if ( lineTexCoords.isNull() )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user