mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6388 Surface Import : Make import robust, add progress
Co-authored-by: Ruben <ruben.thoms@ceetronsolutions.com> Fix issues with import Add progress bar Add Surface Import Coarsening to Preferences Use preferredMinimumDistance between point to define how many rows/columns to skip to reduce data size required to represent a surface. Some files have small sampling distance.
This commit is contained in:
committed by
rubenthoms
parent
a6f77cdd32
commit
7fba6f9171
@@ -18,7 +18,10 @@
|
||||
|
||||
#include "RimFileSurface.h"
|
||||
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RifSurfaceImporter.h"
|
||||
|
||||
#include "RigGocadData.h"
|
||||
#include "RigSurface.h"
|
||||
#include "RimSurfaceCollection.h"
|
||||
@@ -187,7 +190,8 @@ bool RimFileSurface::loadDataFromFile()
|
||||
}
|
||||
else if ( filePath.endsWith( "dat", Qt::CaseInsensitive ) )
|
||||
{
|
||||
surface = RifSurfaceImporter::readOpenWorksXyzFile( filePath );
|
||||
double resamplingDistance = RiaPreferences::current()->surfaceImportResamplingDistance();
|
||||
surface = RifSurfaceImporter::readOpenWorksXyzFile( filePath, resamplingDistance );
|
||||
}
|
||||
|
||||
m_vertices = surface.first;
|
||||
|
||||
Reference in New Issue
Block a user