#5273 Allen Diagrams: Compute complete set of NNCs

Add class RigNncConnection
Implement algorithm to compute the complete set of Nncs
This commit is contained in:
Magne Sjaastad
2020-01-15 08:45:40 +01:00
parent 360893817e
commit fa791d0568
9 changed files with 352 additions and 32 deletions

View File

@@ -21,6 +21,8 @@
#include "RiaNncDefines.h"
#include "RigNncConnection.h"
#include "cvfObject.h"
#include "cvfStructGrid.h"
#include "cvfVector3.h"
@@ -33,28 +35,6 @@ class RigMainGrid;
class RigCell;
class RigEclipseResultAddress;
class RigConnection
{
public:
RigConnection()
: m_c1GlobIdx( cvf::UNDEFINED_SIZE_T )
, m_c1Face( cvf::StructGridInterface::NO_FACE )
, m_c2GlobIdx( cvf::UNDEFINED_SIZE_T )
{
}
bool hasCommonArea() const
{
return m_polygon.size() > 0;
}
size_t m_c1GlobIdx;
cvf::StructGridInterface::FaceType m_c1Face;
size_t m_c2GlobIdx;
std::vector<cvf::Vec3d> m_polygon;
};
class RigNNCData : public cvf::Object
{
public:
@@ -68,6 +48,7 @@ public:
RigNNCData();
void processConnections( const RigMainGrid& mainGrid );
void computeNncsFromFaults( const RigMainGrid* mainGrid );
void setConnections( std::vector<RigConnection>& connections );
@@ -108,6 +89,7 @@ private:
private:
std::vector<RigConnection> m_connections;
size_t m_nativeConnectionCount;
std::map<QString, std::vector<std::vector<double>>> m_connectionResults;
std::map<RigEclipseResultAddress, QString> m_resultAddrToNNCDataType;
};