VTK  9.3.20240329
vtkButterflySubdivisionFilter.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
75 #ifndef vtkButterflySubdivisionFilter_h
76 #define vtkButterflySubdivisionFilter_h
77 
78 #include "vtkFiltersModelingModule.h" // For export macro
80 
81 VTK_ABI_NAMESPACE_BEGIN
82 class vtkCellArray;
83 class vtkIdList;
84 class vtkIntArray;
85 
86 class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
88 {
89 public:
91 
96  void PrintSelf(ostream& os, vtkIndent indent) override;
98 
99 protected:
101  ~vtkButterflySubdivisionFilter() override = default;
102 
103 private:
104  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
105  vtkPointData* outputPD) override;
106  void GenerateButterflyStencil(
107  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
108  void GenerateLoopStencil(
109  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
110  void GenerateBoundaryStencil(
111  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
112 
114  void operator=(const vtkButterflySubdivisionFilter&) = delete;
115 };
116 
117 VTK_ABI_NAMESPACE_END
118 #endif
generate a subdivision surface using the Butterfly Scheme
~vtkButterflySubdivisionFilter() override=default
static vtkButterflySubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
object to represent cell connectivity
Definition: vtkCellArray.h:286
list of point or cell ids
Definition: vtkIdList.h:133
a simple class to control print indentation
Definition: vtkIndent.h:108
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:144
generate a subdivision surface using an Interpolating Scheme
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
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