31#ifndef vtkCapPolyData_h
32#define vtkCapPolyData_h
35#include <vtkAppendPolyData.h>
36#include <vtkImplicitFunction.h>
37#include <vtkPolyDataAlgorithm.h>
42class vtkPlaneCollection;
48 void PrintSelf(ostream& os, vtkIndent indent)
override;
65 static void GetPlanes(vtkImplicitFunction* function, vtkPlaneCollection* planes, vtkAbstractTransform* parentTransform =
nullptr);
92 void CreateEndCap(vtkPlaneCollection* planes, vtkPolyData* originalPolyData,
93 vtkImplicitFunction* cutFunction, vtkPolyData* outputEndCap);
98 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
override;
Filter to generate an end cap for a polydata cut with the specified function.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
void CreateEndCap(vtkPlaneCollection *planes, vtkPolyData *originalPolyData, vtkImplicitFunction *cutFunction, vtkPolyData *outputEndCap)
Generate the end cap for the input polydata cut using planes in the cutFunction.
vtkSmartPointer< vtkImplicitFunction > ClipFunction
void UpdateCellTypeArray(vtkPolyData *polyData)
Updates the polydata cell scalar array to reflect the cell type.
vtkMTimeType GetMTime() override
Return the mtime also considering the locator and clip function.
static vtkCapPolyData * New()
static void GetPlanes(vtkImplicitFunction *function, vtkPlaneCollection *planes, vtkAbstractTransform *parentTransform=nullptr)
Get the list of planes from the implicit function.
bool GenerateCellTypeScalars
~vtkCapPolyData() override