Co-authored-by: Ruben Manuel Thoms <ruben.thoms@ceetronsolutions.com>
This commit is contained in:
Magne Sjaastad 2020-08-24 14:04:08 +02:00
parent 0bd328f4df
commit 4f68f2b11a
2 changed files with 6 additions and 6 deletions

View File

@ -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<unsigned> tringleIndices{m_tringleIndices};
std::vector<unsigned> tringleIndices{m_triangleIndices};
std::vector<cvf::Vec3d> vertices{m_vertices};
RiaDefines::GridCaseAxis sliceDirection = RiaDefines::GridCaseAxis::AXIS_K;
@ -409,7 +409,7 @@ bool RimGridCaseSurface::updateSurfaceData()
bool RimGridCaseSurface::exportStructSurfaceFromGridCase( std::vector<cvf::Vec3d>* vertices,
std::vector<std::pair<uint, uint>>* structGridVertexIndices )
{
if ( m_vertices.empty() || m_tringleIndices.empty() || m_structGridIndices.empty() )
if ( m_vertices.empty() || m_triangleIndices.empty() || m_structGridIndices.empty() )
{
extractDataFromGrid();
}

View File

@ -76,7 +76,7 @@ private:
caf::PdmPtrField<RimCase*> m_case;
caf::PdmField<int> m_oneBasedSliceIndex;
std::vector<unsigned> m_tringleIndices;
std::vector<unsigned> m_triangleIndices;
std::vector<cvf::Vec3d> m_vertices;
std::vector<std::pair<unsigned, unsigned>> m_structGridIndices;
};