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 
51 
52 class vtkCellArray;
53 class vtkIdList;
54 class vtkIntArray;
55 
57 {
58 public:
60 
64 
65 protected:
68 
69 private:
70  void GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData,
71  vtkPoints *outputPts, vtkPointData *outputPD);
72  void GenerateButterflyStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
73  vtkIdList *stencilIds, double *weights);
74  void GenerateLoopStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
75  vtkIdList *stencilIds, double *weights);
76  void GenerateBoundaryStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
77  vtkIdList *stencilIds, double *weights);
78 
79 private:
81  void operator=(const vtkButterflySubdivisionFilter&); // Not implemented.
82 };
83 
84 #endif
85 
86