Commit e74ae8c1 authored by Berk Geveci's avatar Berk Geveci
Browse files

PERF: Tweaked kd tree performance (patch by Ken Moreland)

parent 477aee6d
......@@ -47,7 +47,7 @@
#include <vtkstd/set>
#include <vtkstd/algorithm>
vtkCxxRevisionMacro(vtkKdTree, "1.11.2.1");
vtkCxxRevisionMacro(vtkKdTree, "1.11.2.2");
// Timing data ---------------------------------------------
......@@ -571,7 +571,7 @@ float *vtkKdTree::ComputeCellCenters(vtkDataSet *set)
cptr[1] = (float)dcenter[1];
cptr[2] = (float)dcenter[2];
cptr += 3;
if (j%100)
if (j%1000 == 0)
{
this->UpdateSubOperationProgress(static_cast<double>(j)/totalCells);
}
......@@ -593,7 +593,7 @@ float *vtkKdTree::ComputeCellCenters(vtkDataSet *set)
cptr[1] = (float)dcenter[1];
cptr[2] = (float)dcenter[2];
cptr += 3;
if (j%100)
if (j%1000 == 0)
{
this->UpdateSubOperationProgress(static_cast<double>(j)/totalCells);
}
......
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