mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user