Skip to content
Snippets Groups Projects
Commit 6543a385 authored by mattijs's avatar mattijs
Browse files

fix walking using edges

parent 7de5697a
Branches
Tags
No related merge requests found
......@@ -121,8 +121,8 @@ Foam::labelList Foam::orientedSurface::edgeToFace
label face0 = eFaces[0];
label face1 = eFaces[1];
const labelledTri& f0 = s[face0];
const labelledTri& f1 = s[face1];
const labelledTri& f0 = s.localFaces()[face0];
const labelledTri& f1 = s.localFaces()[face1];
if (flip[face0] == UNVISITED)
{
......@@ -349,7 +349,10 @@ Foam::orientedSurface::orientedSurface
:
triSurface(surf)
{
point outsidePoint = 2 * treeBoundBox(localPoints()).span();
// BoundBox calculation without localPoints
treeBoundBox bb(surf.points(), surf.meshPoints());
point outsidePoint = bb.max() + bb.span();
orient(*this, outsidePoint, orientOutside);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment