VTK  9.2.6
vtkButterflySubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkButterflySubdivisionFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
87 #ifndef vtkButterflySubdivisionFilter_h
88 #define vtkButterflySubdivisionFilter_h
89 
90 #include "vtkFiltersModelingModule.h" // For export macro
92 
93 class vtkCellArray;
94 class vtkIdList;
95 class vtkIntArray;
96 
97 class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
99 {
100 public:
102 
107  void PrintSelf(ostream& os, vtkIndent indent) override;
109 
110 protected:
112  ~vtkButterflySubdivisionFilter() override = default;
113 
114 private:
115  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
116  vtkPointData* outputPD) override;
117  void GenerateButterflyStencil(
118  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
119  void GenerateLoopStencil(
120  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
121  void GenerateBoundaryStencil(
122  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
123 
124 private:
126  void operator=(const vtkButterflySubdivisionFilter&) = delete;
127 };
128 
129 #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:296
list of point or cell ids
Definition: vtkIdList.h:143
a simple class to control print indentation
Definition: vtkIndent.h:119
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:155
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:151
represent and manipulate 3D points
Definition: vtkPoints.h:149
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
int vtkIdType
Definition: vtkType.h:332