#8029 Ensemble Fracture Statistics: improve area of statistics result

This commit is contained in:
Kristian Bendiksen
2021-10-22 16:57:12 +02:00
parent da74a4f0d6
commit c3a5b980a4
4 changed files with 203 additions and 45 deletions

View File

@@ -20,6 +20,8 @@
#include "RiaLogging.h"
#include "cvfGeometryTools.h"
#include <QString>
//--------------------------------------------------------------------------------------------------
@@ -107,3 +109,11 @@ double RigFractureCell::area() const
{
return cellSizeX() * cellSizeZ();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::Vec3d RigFractureCell::centerPosition() const
{
return cvf::GeometryTools::computePolygonCenter( m_polygon );
}

View File

@@ -43,6 +43,8 @@ public:
double cellSizeZ() const;
double area() const;
cvf::Vec3d centerPosition() const;
private:
std::vector<cvf::Vec3d> m_polygon;
double m_conductivityValue;