Commit 799a06ed authored by David C. Lonie's avatar David C. Lonie

Use specified array to splatter volumes in vtkCheckerboardSplatter.

parent cd045139
...@@ -601,6 +601,11 @@ vtkCheckerboardSplatter::vtkCheckerboardSplatter() ...@@ -601,6 +601,11 @@ vtkCheckerboardSplatter::vtkCheckerboardSplatter()
this->MaximumDimension = 50; this->MaximumDimension = 50;
this->ParallelSplatCrossover = 2; 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( ...@@ -696,7 +701,7 @@ int vtkCheckerboardSplatter::RequestData(
} }
// Grab relevant attribute data // Grab relevant attribute data
vtkDataArray *inScalars = input->GetPointData()->GetScalars(); vtkDataArray *inScalars = this->GetInputArrayToProcess(0, inputVector);
vtkDataArray *inNormals = input->GetPointData()->GetNormals(); vtkDataArray *inNormals = input->GetPointData()->GetNormals();
// Okay actually execute the algorithm. Manage all the crazy template // 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