mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor code
Make use of calculateCurrentTotalCellVisibility for eclipse view to get surface vertices. Prevent usage of individual grid part managers in gRPC-service.
This commit is contained in:
@@ -203,33 +203,6 @@ void RivGridPartMgr::appendPartsToModel( cvf::ModelBasicList* model )
|
||||
if ( m_surfaceGridLines.notNull() ) model->addPart( m_surfaceGridLines.p() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Returns the surface vertices of the grid part
|
||||
///
|
||||
/// Creates vertices if they do not exist
|
||||
/// Used for gRPC service GridGeometryExtraction
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3fArray* RivGridPartMgr::getOrCreateSurfaceVertices()
|
||||
{
|
||||
return m_surfaceGenerator.getOrCreateVertices();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Get map from quad index to cell index
|
||||
///
|
||||
/// Used for gRPC service GridGeometryExtraction
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<size_t> RivGridPartMgr::getSurfaceQuadToCellIndicesArray()
|
||||
{
|
||||
auto* gridQuadToCellFaceMapper = m_surfaceGenerator.quadToCellFaceMapper();
|
||||
if ( gridQuadToCellFaceMapper == nullptr )
|
||||
{
|
||||
return std::vector<size_t>();
|
||||
}
|
||||
|
||||
return gridQuadToCellFaceMapper->quadToCellIndicesArray();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user