mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Adjusted according to review comments.
This commit is contained in:
committed by
Magne Sjaastad
parent
ef4894985a
commit
b6cca51593
@@ -31,9 +31,7 @@ Vec3Type GeometryTools::computePolygonCenter( const std::vector<Vec3Type>& polyg
|
||||
|
||||
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[i];
|
||||
}
|
||||
s /= polygon.size();
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user