36 vtkInformationVector **inputVector,
37 vtkInformationVector *outputVector) {
42 auto input = vtkDataSet::GetData(inputVector[0]);
43 auto output = vtkPolyData::GetData(outputVector);
45 auto uArray = this->GetInputArrayToProcess(0, inputVector);
47 this->
printErr(
"Unable to retrieve input array U.");
50 std::string
const uArrayName(uArray->GetName());
52 auto vArray = this->GetInputArrayToProcess(1, inputVector);
54 this->
printErr(
"Unable to retrieve input array V.");
57 std::string
const vArrayName(vArray->GetName());
59 this->
printMsg(
"Computing Fiber (" + uArrayName +
": "
60 + std::to_string(UValue) +
", " + vArrayName +
": "
61 + std::to_string(VValue) +
")",
65 isoSurface->SetInputData(input);
66 isoSurface->SetComputeScalars(
true);
67 isoSurface->SetInputArrayToProcess(
68 0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, uArray->GetName());
69 isoSurface->SetGenerateTriangles(
true);
70 isoSurface->SetNumberOfContours(1);
71 isoSurface->SetValue(0, UValue);
75 isoLine->SetInputData(isoSurface->GetOutput());
76 isoLine->SetComputeScalars(
true);
77 isoLine->SetInputArrayToProcess(
78 0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, vArray->GetName());
79 isoLine->SetNumberOfContours(1);
80 isoLine->SetValue(0, VValue);
83 output->ShallowCopy(isoLine->GetOutput());
85 this->
printMsg(
"Computing Fiber (" + uArrayName +
": "
86 + std::to_string(UValue) +
", " + vArrayName +
": "
87 + std::to_string(VValue) +
")",
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)