87 vtkInformationVector **inputVector,
88 vtkInformationVector *outputVector) {
92 vtkDataSet *inputDataSet = vtkDataSet::GetData(inputVector[0]);
141 vtkDataArray *inputArray = this->GetInputArrayToProcess(0, inputVector);
143 this->
printErr(
"Unable to retrieve input array.");
149 if(this->GetInputArrayAssociation(0, inputVector) != 0) {
150 this->
printErr(
"Input array needs to be a point data array.");
153 if(inputArray->GetNumberOfComponents() != 1) {
154 this->
printErr(
"Input array needs to be a scalar array.");
159 this->
printMsg(
"Starting computation...");
160 this->
printMsg(
" Scalar Array: " + std::string(inputArray->GetName()));
167 outputArray->SetName(this->OutputArrayName.data());
168 outputArray->SetNumberOfComponents(1);
169 outputArray->SetNumberOfTuples(inputArray->GetNumberOfTuples());
184 (status = this->computeAverages<VTK_TT, TTK_TT>(
187 (TTK_TT *)triangulation->
getData())));
195 vtkDataSet *outputDataSet = vtkDataSet::GetData(outputVector, 0);
198 outputDataSet->ShallowCopy(inputDataSet);
201 outputDataSet->GetPointData()->AddArray(outputArray);
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)