diff --git a/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.cpp b/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.cpp index 9b101c9ad1..9496e43117 100644 --- a/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.cpp +++ b/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.cpp @@ -269,7 +269,7 @@ void RimGridCaseSurface::extractDataFromGrid() } m_vertices = vertices; - m_tringleIndices = triangleIndices; + m_triangleIndices = triangleIndices; m_structGridIndices = structGridVertexIndices; } } @@ -344,7 +344,7 @@ bool RimGridCaseSurface::findValidCellIndex( const RigMainGrid* void RimGridCaseSurface::clearCachedNativeData() { m_vertices.clear(); - m_tringleIndices.clear(); + m_triangleIndices.clear(); m_structGridIndices.clear(); } @@ -353,14 +353,14 @@ void RimGridCaseSurface::clearCachedNativeData() //-------------------------------------------------------------------------------------------------- bool RimGridCaseSurface::updateSurfaceData() { - if ( m_vertices.empty() || m_tringleIndices.empty() || m_structGridIndices.empty() ) + if ( m_vertices.empty() || m_triangleIndices.empty() || m_structGridIndices.empty() ) { extractDataFromGrid(); } RigSurface* surfaceData = nullptr; - std::vector tringleIndices{m_tringleIndices}; + std::vector tringleIndices{m_triangleIndices}; std::vector vertices{m_vertices}; RiaDefines::GridCaseAxis sliceDirection = RiaDefines::GridCaseAxis::AXIS_K; @@ -409,7 +409,7 @@ bool RimGridCaseSurface::updateSurfaceData() bool RimGridCaseSurface::exportStructSurfaceFromGridCase( std::vector* vertices, std::vector>* structGridVertexIndices ) { - if ( m_vertices.empty() || m_tringleIndices.empty() || m_structGridIndices.empty() ) + if ( m_vertices.empty() || m_triangleIndices.empty() || m_structGridIndices.empty() ) { extractDataFromGrid(); } diff --git a/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.h b/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.h index fcff274d26..f8703db8ce 100644 --- a/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.h +++ b/ApplicationCode/ProjectDataModel/Surfaces/RimGridCaseSurface.h @@ -76,7 +76,7 @@ private: caf::PdmPtrField m_case; caf::PdmField m_oneBasedSliceIndex; - std::vector m_tringleIndices; + std::vector m_triangleIndices; std::vector m_vertices; std::vector> m_structGridIndices; };