Commit 411f86f5 authored by David C. Lonie's avatar David C. Lonie Committed by Code Review
Browse files

Merge topic 'locator-estimation' into master

78748c5b Improve contouring locator performance.
parents 0ddb2c13 78748c5b
......@@ -482,7 +482,8 @@ int vtkContourFilter::RequestData(
this->CreateDefaultLocator();
}
this->Locator->InitPointInsertion (newPts,
input->GetBounds(),estimatedSize);
input->GetBounds(),
input->GetNumberOfPoints());
// interpolate data along edge
// if we did not ask for scalars to be computed, don't copy them
......
......@@ -165,7 +165,8 @@ void vtkContourGridExecute(vtkContourGrid *self, vtkDataSet *input,
cellScalars->Allocate(VTK_CELL_SIZE*inScalars->GetNumberOfComponents());
// locator used to merge potentially duplicate points
locator->InitPointInsertion (newPts, input->GetBounds(),estimatedSize);
locator->InitPointInsertion (newPts, input->GetBounds(),
input->GetNumberOfPoints());
// interpolate data along edge
// if we did not ask for scalars to be computed, don't copy them
......
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