mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Face centre error, treating all faces as tris.
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user