Commit 227a43c1 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

BUG: An update progress was send every time a cell center was computed, which...

BUG: An update progress was send every time a cell center was computed, which could really slow down the process if that actually updates a GUI.  Now only send an update every 1000th cell center computation.
parent a97c09d7
......@@ -48,7 +48,7 @@
#include <vtkstd/set>
#include <vtkstd/algorithm>
vtkCxxRevisionMacro(vtkKdTree, "1.18");
vtkCxxRevisionMacro(vtkKdTree, "1.19");
// Timing data ---------------------------------------------
......@@ -577,7 +577,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);
}
......@@ -599,7 +599,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);
}
......
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