Seismic support improvments (#10086)

Adds support for creating seismic sections from well paths and existing intersections.
Adds more stability and user improvements
This commit is contained in:
jonjenssen
2023-04-13 13:18:34 +02:00
committed by GitHub
parent 952e766c2f
commit 2e955f2875
20 changed files with 576 additions and 103 deletions

View File

@@ -60,6 +60,7 @@ void RimSeismicAlphaMapper::setDataRangeAndAlphas( double minVal, double maxVal,
cvf::ubyte RimSeismicAlphaMapper::alphaValue( double dataValue ) const
{
int index = (int)( m_scaleFactor * ( dataValue - m_minValue ) );
index = std::clamp( index, 0, (int)sizeof( m_alphavalues ) - 1 );
return ( cvf::ubyte )( m_alphavalues[index] * 255 );
}