Commit 1bb78656 authored by graham's avatar graham
Browse files

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

parent 54ba1948
......@@ -499,7 +499,7 @@ Foam::point Foam::face::centre(const pointField& points) const
const label nPoints = size();
// If the face is a triangle, do a direct calculation
if (nPoints)
if (nPoints == 3)
{
return
(1.0/3.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment