VTK
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 =========================================================================*/
47 #ifndef vtkButterflySubdivisionFilter_h
48 #define vtkButterflySubdivisionFilter_h
49 
50 #include "vtkFiltersModelingModule.h" // For export macro
52 
53 class vtkCellArray;
54 class vtkIdList;
55 class vtkIntArray;
56 
58 {
59 public:
61 
65 
66 protected:
69 
70 private:
71  int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData,
72  vtkPoints *outputPts, vtkPointData *outputPD);
73  void GenerateButterflyStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
74  vtkIdList *stencilIds, double *weights);
75  void GenerateLoopStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
76  vtkIdList *stencilIds, double *weights);
77  void GenerateBoundaryStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
78  vtkIdList *stencilIds, double *weights);
79 
80 private:
82  void operator=(const vtkButterflySubdivisionFilter&); // Not implemented.
83 };
84 
85 #endif
86 
87 
88 // VTK-HeaderTest-Exclude: vtkButterflySubdivisionFilter.h
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
represent and manipulate point attribute data
Definition: vtkPointData.h:36
#define VTKFILTERSMODELING_EXPORT
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
generate a subdivision surface using the Butterfly Scheme
static vtkPolyDataAlgorithm * New()
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
list of point or cell ids
Definition: vtkIdList.h:35
object to represent cell connectivity
Definition: vtkCellArray.h:49
generate a subdivision surface using an Interpolating Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:38