BUG: Face centre error, treating all faces as tris.

This commit is contained in:
graham
2011-05-13 16:01:07 +01:00
parent 54ba194801
commit 1bb786567d

View File

@ -499,7 +499,7 @@ Foam::point Foam::face::centre(const pointField& points) const
const label nPoints = size(); const label nPoints = size();
// If the face is a triangle, do a direct calculation // If the face is a triangle, do a direct calculation
if (nPoints) if (nPoints == 3)
{ {
return return
(1.0/3.0) (1.0/3.0)