Fix: edge lookup from edgeLabels_ by index rather than just from edges

This commit is contained in:
graham
2009-05-19 15:48:54 +01:00
committed by andy
parent a624d51561
commit 55e766bd67

View File

@ -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?