39 vtkInformationVector **inputVector,
40 vtkInformationVector *outputVector) {
42 vtkDataSet *input = vtkDataSet::GetData(inputVector[0]);
43 vtkDataSet *output = vtkDataSet::GetData(outputVector);
47 int const keepGoing = checkEmptyMPIInput<vtkDataSet>(input);
53 if(triangulation ==
nullptr) {
54 this->
printErr(
"Triangulation is NULL");
62 ttk::SimplexId const numberOfVertices = triangulation->getNumberOfVertices();
63 vtkNew<vtkIdTypeArray> globalPointIds;
64 globalPointIds->SetNumberOfTuples(numberOfVertices);
65 globalPointIds->SetNumberOfComponents(1);
66 globalPointIds->SetName(
"GlobalPointIds");
67 for(
int i = 0; i < numberOfVertices; i++) {
69 if(input->GetDataObjectType() == VTK_IMAGE_DATA) {
70 globalPointIds->SetTuple1(i, triangulation->getVertexGlobalId(i));
73 globalPointIds->SetTuple1(i, i);
78 if(input->GetDataObjectType() == VTK_IMAGE_DATA) {
80 input->GetPointData()->AddArray(globalPointIds);
85 output->ShallowCopy(input);
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)