VTK  9.3.1
vtkApproximatingSubdivisionFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkApproximatingSubdivisionFilter_h
16 #define vtkApproximatingSubdivisionFilter_h
17 
18 #include "vtkFiltersGeneralModule.h" // For export macro
19 #include "vtkSubdivisionFilter.h"
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkCellArray;
23 class vtkCellData;
24 class vtkIdList;
25 class vtkIntArray;
26 class vtkPoints;
27 class vtkPointData;
28 
29 class VTKFILTERSGENERAL_EXPORT vtkApproximatingSubdivisionFilter : public vtkSubdivisionFilter
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35 protected:
37  ~vtkApproximatingSubdivisionFilter() override = default;
38 
40  virtual int GenerateSubdivisionPoints(
41  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts, vtkPointData* outputPD) = 0;
42  void GenerateSubdivisionCells(
43  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkCellArray* outputPolys, vtkCellData* outputCD);
44  int FindEdge(vtkPolyData* mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2,
45  vtkIntArray* edgeData, vtkIdList* cellIds);
46  vtkIdType InterpolatePosition(
47  vtkPoints* inputPts, vtkPoints* outputPts, vtkIdList* stencil, double* weights);
48 
49 private:
51  void operator=(const vtkApproximatingSubdivisionFilter&) = delete;
52 };
53 
54 VTK_ABI_NAMESPACE_END
55 #endif
represent and manipulate point attribute data
Definition: vtkPointData.h:29
Store vtkAlgorithm input/output information.
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:315
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
generate a subdivision surface using an Approximating Scheme
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
object to represent cell connectivity
Definition: vtkCellArray.h:175
Store zero or more vtkInformation instances.
base class for subvision filters
represent and manipulate 3D points
Definition: vtkPoints.h:28