Commit 3298ad05 authored by Will Schroeder's avatar Will Schroeder
Browse files

Encapsulated helper class in anonymous namespace

parent 1c2a6930
......@@ -449,6 +449,7 @@ vtkIdType vtkPointLocator::FindClosestPointWithinRadius(double radius,
namespace {
//-----------------------------------------------------------------------------
// Sorting closest points
class IdTuple
......@@ -460,6 +461,8 @@ public:
bool operator< (const IdTuple& tuple) const
{return Dist2 < tuple.Dist2;}
};
}
//-----------------------------------------------------------------------------
void vtkPointLocator::FindDistributedPoints(int N, double x,
......
......@@ -907,6 +907,7 @@ FindClosestPointWithinRadius(double radius, const double x[3],
return closest;
}
namespace {
//-----------------------------------------------------------------------------
// Obtaining closest points requires sorting nearby points
class IdTuple
......@@ -918,6 +919,7 @@ public:
bool operator< (const IdTuple& tuple) const
{return Dist2 < tuple.Dist2;}
};
}
//-----------------------------------------------------------------------------
template <typename TIds> void BucketList<TIds>::
......
Markdown is supported
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