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 =========================================================================*/
48 #ifndef vtkButterflySubdivisionFilter_h
49 #define vtkButterflySubdivisionFilter_h
50 
51 #include "vtkFiltersModelingModule.h" // For export macro
53 
54 class vtkCellArray;
55 class vtkIdList;
56 class vtkIntArray;
57 
58 class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
60 {
61 public:
63 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
71 protected:
73  ~vtkButterflySubdivisionFilter() override = default;
74 
75 private:
76  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
77  vtkPointData* outputPD) override;
78  void GenerateButterflyStencil(
79  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
80  void GenerateLoopStencil(
81  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
82  void GenerateBoundaryStencil(
83  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
84 
85 private:
87  void operator=(const vtkButterflySubdivisionFilter&) = delete;
88 };
89 
90 #endif
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
represent and manipulate point attribute data
Definition: vtkPointData.h:41
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
generate a subdivision surface using the Butterfly Scheme
static vtkPolyDataAlgorithm * New()
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
object to represent cell connectivity
Definition: vtkCellArray.h:186
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
generate a subdivision surface using an Interpolating Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:39