Commit 55e766bd authored by graham's avatar graham Committed by andy
Browse files

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

parent a624d515
......@@ -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?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment