mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Revert "Merge branch 'dev' of https://github.com/OPM/ResInsight into dev"
This reverts commita536ac2626, reversing changes made tob92384211b.
This commit is contained in:
@@ -36,19 +36,6 @@ cvf::Vec3d
|
||||
return centerCoord;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3d GeometryTools::computeTriangleCenter( const cvf::Vec3d& v0, const cvf::Vec3d& v1, const cvf::Vec3d& v2 )
|
||||
{
|
||||
cvf::Vec3d centerCoord = v0;
|
||||
centerCoord += v1;
|
||||
centerCoord += v2;
|
||||
centerCoord /= 3.0;
|
||||
|
||||
return centerCoord;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Ez = Plane normal, Ex = in XY plane (horizontal), Ey = semi vertical upwards
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -36,9 +36,6 @@ class GeometryTools
|
||||
public:
|
||||
static cvf::Vec3d
|
||||
computeFaceCenter( const cvf::Vec3d& v0, const cvf::Vec3d& v1, const cvf::Vec3d& v2, const cvf::Vec3d& v3 );
|
||||
static cvf::Vec3d computeTriangleCenter( const cvf::Vec3d& v0, const cvf::Vec3d& v1, const cvf::Vec3d& v2 );
|
||||
template <typename Vec3Type>
|
||||
static Vec3Type computePolygonCenter( const std::vector<Vec3Type>& polygon );
|
||||
static cvf::Mat3f computePlaneHorizontalRotationMx( const cvf::Vec3f& inPlaneVec0, const cvf::Vec3f& inPlaneVec1 );
|
||||
|
||||
static cvf::Vec3d projectPointOnLine( const cvf::Vec3d& p1,
|
||||
|
||||
@@ -21,25 +21,6 @@
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
template <typename Vec3Type>
|
||||
Vec3Type GeometryTools::computePolygonCenter(const std::vector<Vec3Type>& polygon)
|
||||
{
|
||||
Vec3Type s;
|
||||
|
||||
for (size_t i = 0; i < polygon.size(); i++)
|
||||
{
|
||||
s.x() += polygon[i].x();
|
||||
s.y() += polygon[i].y();
|
||||
s.z() += polygon[i].z();
|
||||
}
|
||||
s /= polygon.size();
|
||||
return s;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user