#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:
Magne Sjaastad
2020-09-10 11:45:11 +02:00
committed by rubenthoms
parent a6f77cdd32
commit 7fba6f9171
5 changed files with 179 additions and 163 deletions

View File

@@ -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;