MCPcopy Create free account
hub / github.com/Kitware/VTK / RequestData

Method RequestData

Filters/Geometry/vtkExplicitStructuredGridSurfaceFilter.cxx:72–90  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

70
71//------------------------------------------------------------------------------
72int vtkExplicitStructuredGridSurfaceFilter::RequestData(vtkInformation* vtkNotUsed(request),
73 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
74{
75
76 // Get the input and output
77 vtkExplicitStructuredGrid* input = vtkExplicitStructuredGrid::GetData(inputVector[0], 0);
78 vtkPolyData* output = vtkPolyData::GetData(outputVector, 0);
79
80 vtkIdType numCells = input->GetNumberOfCells();
81 if (input->CheckAttributes() || numCells == 0)
82 {
83 return 1;
84 }
85
86 inputVector[0]->GetInformationObject(0)->Get(
87 vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), this->WholeExtent);
88
89 return this->ExtractSurface(input, output);
90}
91
92static int hexaFaces[6][4] = {
93 { 0, 4, 7, 3 },

Callers

nothing calls this directly

Calls 6

ExtractSurfaceMethod · 0.95
CheckAttributesMethod · 0.80
GetInformationObjectMethod · 0.80
GetDataFunction · 0.50
GetNumberOfCellsMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected