VTK  9.3.20240419
vtkLoopSubdivisionFilter.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
66 #ifndef vtkLoopSubdivisionFilter_h
67 #define vtkLoopSubdivisionFilter_h
68 
70 #include "vtkFiltersModelingModule.h" // For export macro
71 
72 VTK_ABI_NAMESPACE_BEGIN
73 class vtkPolyData;
74 class vtkIntArray;
75 class vtkPoints;
76 class vtkIdList;
77 
78 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
79 {
80 public:
82 
87  void PrintSelf(ostream& os, vtkIndent indent) override;
89 
90 protected:
92  ~vtkLoopSubdivisionFilter() override = default;
93 
94  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
95  vtkPointData* outputPD) override;
96  int GenerateEvenStencil(vtkIdType p1, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
98  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
99 
101 
102 private:
104  void operator=(const vtkLoopSubdivisionFilter&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
generate a subdivision surface using an Approximating Scheme
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
generate a subdivision surface using the Loop Scheme
int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) override
~vtkLoopSubdivisionFilter() override=default
vtkLoopSubdivisionFilter()=default
void GenerateOddStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
int GenerateEvenStencil(vtkIdType p1, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
static vtkLoopSubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
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
int vtkIdType
Definition: vtkType.h:315