Added function for importing surfaces from OpenWorks XYZ files.

Added helper function for fuzzy comparing vectors.
Adjusted (old) code to avoid warnings.
This commit is contained in:
Ruben Manuel Thoms
2020-08-31 13:41:20 +02:00
committed by Magne Sjaastad
parent 2b30ff3117
commit 8290f3e293
7 changed files with 61249 additions and 25 deletions

View File

@@ -185,6 +185,10 @@ bool RimFileSurface::loadDataFromFile()
surface = m_gocadData->gocadGeometry();
}
else if ( filePath.endsWith( "dat", Qt::CaseInsensitive ) )
{
surface = RifSurfaceImporter::readOpenWorksXyzFile( filePath );
}
m_vertices = surface.first;
m_tringleIndices = surface.second;