mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Create multiple polygons from a contour map
* Fix overwrite of value thresholds * Fix performance issue with filtered values * Add "Delete All Polygons" from the polygon collection * Add area threshold where user can specify area cutoff
This commit is contained in:
1 parent
bbd79cca6a
commit
f4c31e0b28
23 files changed
+390
-112
No files matched your search
@@ -111,6 +111,14 @@ cvf::Vec2ui RigContourMapProjection::numberOfVerticesIJ() const
|
||||
return m_contourMapGrid.numberOfVerticesIJ();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigContourMapProjection::vertexIndex( unsigned int i, unsigned int j ) const
|
||||
{
|
||||
return m_contourMapGrid.vertexIndexFromIJ( i, j );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -124,20 +132,6 @@ double RigContourMapProjection::valueAtVertex( unsigned int i, unsigned int j )
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigContourMapProjection::filteredValueAtVertex( unsigned int i, unsigned int j ) const
|
||||
{
|
||||
size_t index = m_contourMapGrid.vertexIndexFromIJ( i, j );
|
||||
if ( index < numberOfVertices() )
|
||||
{
|
||||
auto values = aggregatedVertexResultsFiltered();
|
||||
return values.at( index );
|
||||
}
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -60,8 +60,8 @@ public:
|
||||
cvf::Vec2ui numberOfElementsIJ() const;
|
||||
cvf::Vec2ui numberOfVerticesIJ() const;
|
||||
|
||||
size_t vertexIndex( unsigned int i, unsigned int j ) const;
|
||||
double valueAtVertex( unsigned int i, unsigned int j ) const;
|
||||
double filteredValueAtVertex( unsigned int i, unsigned int j ) const;
|
||||
|
||||
unsigned int numberOfCells() const;
|
||||
unsigned int numberOfValidCells() const;
|
||||
|
||||
Reference in new issue
Block a user