mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Code review, brush-up, and extended surface unit tests
This commit is contained in:
committed by
Magne Sjaastad
parent
e5f3a3b67d
commit
10e4c60073
@@ -38,6 +38,8 @@ RimFileSurface::RimFileSurface()
|
||||
CAF_PDM_InitObject( "Surface", ":/ReservoirSurface16x16.png", "", "" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_surfaceDefinitionFilePath, "SurfaceFilePath", "File", "", "", "" );
|
||||
|
||||
m_gocadData.reset( new RigGocadData );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -147,10 +149,9 @@ bool RimFileSurface::loadDataFromFile()
|
||||
}
|
||||
else if ( filePath.endsWith( "ts", Qt::CaseInsensitive ) )
|
||||
{
|
||||
RigGocadData gocadData;
|
||||
RifSurfaceReader::readGocadFile( filePath, &gocadData );
|
||||
RifSurfaceReader::readGocadFile( filePath, m_gocadData.get() );
|
||||
|
||||
surface = gocadData.gocadGeometry();
|
||||
surface = m_gocadData->gocadGeometry();
|
||||
}
|
||||
|
||||
m_vertices = surface.first;
|
||||
|
||||
Reference in New Issue
Block a user