VTK  9.3.20240418
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 
41  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts, vtkPointData* outputPD) = 0;
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);
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
generate a subdivision surface using an Approximating Scheme
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType InterpolatePosition(vtkPoints *inputPts, vtkPoints *outputPts, vtkIdList *stencil, double *weights)
~vtkApproximatingSubdivisionFilter() override=default
int FindEdge(vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GenerateSubdivisionCells(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD)
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
object to represent cell connectivity
Definition: vtkCellArray.h:286
represent and manipulate cell attribute data
Definition: vtkCellData.h:141
list of point or cell ids
Definition: vtkIdList.h:133
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:144
represent and manipulate point attribute data
Definition: vtkPointData.h:140
represent and manipulate 3D points
Definition: vtkPoints.h:139
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:181
base class for subvision filters
int vtkIdType
Definition: vtkType.h:315