41 vtkInformationVector **inputVector,
42 vtkInformationVector *outputVector) {
44 auto input = vtkDataSet::GetData(inputVector[0]);
45 auto output = vtkDataSet::GetData(outputVector);
50 output->ShallowCopy(input);
53 auto inputLabels = this->GetInputArrayToProcess(0, inputVector);
56 if(this->GetInputArrayAssociation(0, inputVector) != 0) {
57 this->
printErr(
"Input labels needs to be a point data array.");
60 if(inputLabels->GetNumberOfComponents() != 1) {
61 this->
printErr(
"Input labels needs to be a scalar array.");
68 double pivotLabel = 0;
70 std::string temp, errorMsg;
72 this->
GetPivotLabel(), input->GetFieldData(), temp, errorMsg)) {
77 std::vector<double> values;
80 if(values.size() < 1) {
81 this->
printErr(
"Unable to parse pivot label as double.");
84 pivotLabel = values[0];
90 outputLabels->DeepCopy(inputLabels);
91 output->GetPointData()->AddArray(outputLabels);
104 inputLabels->GetDataType(), triangulation->getType(),
105 (status = this->execute<VTK_TT, TTK_TT>(
110 this->Mode, this->Iterations, this->Grayscale,
112 static_cast<TTK_TT *
>(triangulation->getData()))));