From 55e766bd6760d1b7aa08364f2f9f4b392718eace Mon Sep 17 00:00:00 2001 From: graham <g.macpherson@opencfd.co.uk> Date: Tue, 19 May 2009 15:48:54 +0100 Subject: [PATCH] Fix: edge lookup from edgeLabels_ by index rather than just from edges --- src/meshTools/indexedOctree/treeDataEdge.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshTools/indexedOctree/treeDataEdge.C b/src/meshTools/indexedOctree/treeDataEdge.C index 12f347c1648..3f7ae86ce8c 100644 --- a/src/meshTools/indexedOctree/treeDataEdge.C +++ b/src/meshTools/indexedOctree/treeDataEdge.C @@ -134,7 +134,7 @@ void Foam::treeDataEdge::findNearest { label index = indices[i]; - const edge& e = edges_[index]; + const edge& e = edges_[edgeLabels_[index]]; pointHit nearHit = e.line(points_).nearestDist(sample); @@ -170,7 +170,7 @@ void Foam::treeDataEdge::findNearest { label index = indices[i]; - const edge& e = edges_[index]; + const edge& e = edges_[edgeLabels_[index]]; // Note: could do bb test ? Worthwhile? -- GitLab