Commit 1870ef33 authored by David Lonie's avatar David Lonie Committed by Kitware Robot

Merge topic 'vtkCheckerboardSplatter_scalar_array'

799a06ed Use specified array to splatter volumes in vtkCheckerboardSplatter.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !1189
parents af9812bc 799a06ed
Pipeline #6690 running with stage
......@@ -601,6 +601,11 @@ vtkCheckerboardSplatter::vtkCheckerboardSplatter()
this->MaximumDimension = 50;
this->ParallelSplatCrossover = 2;
// Splat point scalars by default:
this->SetInputArrayToProcess(0, 0, 0,
vtkDataObject::FIELD_ASSOCIATION_POINTS,
vtkDataSetAttributes::SCALARS);
}
//----------------------------------------------------------------------------
......@@ -696,7 +701,7 @@ int vtkCheckerboardSplatter::RequestData(
}
// Grab relevant attribute data
vtkDataArray *inScalars = input->GetPointData()->GetScalars();
vtkDataArray *inScalars = this->GetInputArrayToProcess(0, inputVector);
vtkDataArray *inNormals = input->GetPointData()->GetNormals();
// Okay actually execute the algorithm. Manage all the crazy template
......
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