fix walking using edges
This commit is contained in:
parent
7de5697a2d
commit
6543a38506
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user