Adjusted according to review comments.

This commit is contained in:
Ruben Thoms
2020-09-30 10:47:46 +02:00
committed by Magne Sjaastad
parent ef4894985a
commit b6cca51593
4 changed files with 25 additions and 24 deletions

View File

@@ -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;