ENH: surfaceFeatures: Add constructor that takes an edgeMesh

This commit is contained in:
laurence
2012-03-20 17:43:27 +00:00
parent 9a7beff358
commit 138f149b47
3 changed files with 243 additions and 59 deletions

View File

@ -2832,7 +2832,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
) const
{
label nearestShapeI = -1;
point nearestPoint;
point nearestPoint = vector::zero;
if (nodes_.size())
{
@ -2847,10 +2847,6 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
nearestPoint
);
}
else
{
nearestPoint = vector::zero;
}
return pointIndexHit(nearestShapeI != -1, nearestPoint, nearestShapeI);
}