mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set hard coded string for mock model, and fix Ubuntu build error
This commit is contained in:
@@ -206,8 +206,8 @@ void RivEnclosingPolygonGenerator::constructEnclosingPolygon()
|
||||
// Find next edge in the boundary, i.e. edge containing the next vertex index to look for
|
||||
currentEdge = findNextEdge( nextVertexIndex, boundaryEdges );
|
||||
boundaryEdges.erase( currentEdge );
|
||||
const int start = currentEdge.index1();
|
||||
const int end = currentEdge.index2();
|
||||
const auto start = currentEdge.index1();
|
||||
const auto end = currentEdge.index2();
|
||||
if ( start == cvf::UNDEFINED_UINT || end == cvf::UNDEFINED_UINT )
|
||||
{
|
||||
// Throw error?
|
||||
@@ -238,7 +238,7 @@ void RivEnclosingPolygonGenerator::constructEnclosingPolygon()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::EdgeKey RivEnclosingPolygonGenerator::findNextEdge( int vertexIndex, const std::set<cvf::EdgeKey>& boundaryEdges )
|
||||
cvf::EdgeKey RivEnclosingPolygonGenerator::findNextEdge( cvf::uint vertexIndex, const std::set<cvf::EdgeKey>& boundaryEdges )
|
||||
{
|
||||
for ( auto& elm : boundaryEdges )
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
void constructEnclosingPolygon();
|
||||
|
||||
private:
|
||||
static cvf::EdgeKey findNextEdge( int vertextIndex, const std::set<cvf::EdgeKey>& boundaryEdges );
|
||||
static cvf::EdgeKey findNextEdge( cvf::uint vertextIndex, const std::set<cvf::EdgeKey>& boundaryEdges );
|
||||
|
||||
private:
|
||||
PolygonVertexWelder m_polygonVertexWelder; // Add and weld vertices for a polygon, provides vertex index
|
||||
|
||||
Reference in New Issue
Block a user