VTK
vtkLoopSubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLoopSubdivisionFilter.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 __vtkLoopSubdivisionFilter_h
49 #define __vtkLoopSubdivisionFilter_h
50 
52 
53 class vtkPolyData;
54 class vtkIntArray;
55 class vtkPoints;
56 class vtkIdList;
57 
59 {
60 public:
62 
63  static vtkLoopSubdivisionFilter *New();
66 
67 protected:
70 
72 
73  void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData,
74  vtkPoints *outputPts,
75  vtkPointData *outputPD);
76  void GenerateEvenStencil (vtkIdType p1, vtkPolyData *polys,
77  vtkIdList *stencilIds, double *weights);
78  void GenerateOddStencil (vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
79  vtkIdList *stencilIds, double *weights);
80 
82 
83 private:
84  vtkLoopSubdivisionFilter(const vtkLoopSubdivisionFilter&); // Not implemented.
85  void operator=(const vtkLoopSubdivisionFilter&); // Not implemented.
86 };
87 
88 #endif