Skip to content
Snippets Groups Projects
Commit d747f524 authored by Cory Quammen's avatar Cory Quammen
Browse files

For unstructured grids, enable point merging when requested

For vtkCutter, point merging is not an explicit option. It is enabled
by setting a vtkPointLocator that merges points. However, if a
vtkNonMergingPointLocator is set as the point locator, then points
will not be merged. Pass along the inferred merging option to
vtk3DLinearGridPlaneCutter when execution is deferred to it.

(cherry picked from commit cbdb93fc)
parent 6e73ca43
No related branches found
No related tags found
No related merge requests found
......@@ -405,6 +405,9 @@ int vtkCutter::RequestData(
newPlane->Push(-d + this->GetValue(0));
linear3DCutter->SetPlane(newPlane);
bool mergePoints =
this->GetLocator() && !this->GetLocator()->IsA("vtkNonMergingPointLocator");
linear3DCutter->SetMergePoints(mergePoints);
linear3DCutter->SetOutputPointsPrecision(this->GetOutputPointsPrecision());
linear3DCutter->SetInputArrayToProcess(0, this->GetInputArrayInformation(0));
vtkNew<vtkEventForwarderCommand> progressForwarder;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment