fix walking using edges

This commit is contained in:
mattijs 2009-04-20 17:50:06 +01:00
parent 7de5697a2d
commit 6543a38506

View File

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