41 vtkInformationVector **inputVector,
42 vtkInformationVector *outputVector) {
45 auto target = vtkDataSet::GetData(inputVector[0]);
46 auto source = vtkDataSet::GetData(inputVector[1]);
49 "Computing " + std::to_string(target->GetNumberOfPoints()) +
" locations",
52 auto output = vtkDataSet::GetData(outputVector);
55 probe->SetInputData(target);
56 probe->SetSourceData(source);
59#ifndef TTK_ENABLE_KAMIKAZE
60 if(!probe->GetOutput()) {
61 this->
printErr(
"Data probe failed.");
66 output->ShallowCopy(probe->GetOutput());
69 auto inputPointData = target->GetPointData();
70 auto outputPointData = output->GetPointData();
72 const size_t numberOfArrays = inputPointData->GetNumberOfArrays();
73 for(
size_t i = 0; i < numberOfArrays; ++i)
74 outputPointData->AddArray(inputPointData->GetAbstractArray(i));
77 "Computing " + std::to_string(target->GetNumberOfPoints()) +
" locations",
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)