VTK  9.0.3
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 =========================================================================*/
45 #ifndef vtkButterflySubdivisionFilter_h
46 #define vtkButterflySubdivisionFilter_h
47 
48 #include "vtkFiltersModelingModule.h" // For export macro
50 
51 class vtkCellArray;
52 class vtkIdList;
53 class vtkIntArray;
54 
55 class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
57 {
58 public:
60 
66 
67 protected:
70 
71 private:
72  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
73  vtkPointData* outputPD) override;
74  void GenerateButterflyStencil(
75  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
76  void GenerateLoopStencil(
77  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
78  void GenerateBoundaryStencil(
79  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
80 
81 private:
83  void operator=(const vtkButterflySubdivisionFilter&) = delete;
84 };
85 
86 #endif
87 
88 // VTK-HeaderTest-Exclude: vtkButterflySubdivisionFilter.h
generate a subdivision surface using the Butterfly Scheme
static vtkButterflySubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
object to represent cell connectivity
Definition: vtkCellArray.h:180
list of point or cell ids
Definition: vtkIdList.h:31
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
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:32
represent and manipulate 3D points
Definition: vtkPoints.h:34
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
int vtkIdType
Definition: vtkType.h:338