mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Fix: edge lookup from edgeLabels_ by index rather than just from edges
This commit is contained in:
@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user