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 =========================================================================*/
49 #ifndef vtkLoopSubdivisionFilter_h
50 #define vtkLoopSubdivisionFilter_h
51 
52 #include "vtkFiltersModelingModule.h" // For export macro
54 
55 class vtkPolyData;
56 class vtkIntArray;
57 class vtkPoints;
58 class vtkIdList;
59 
60 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
61 {
62 public:
64 
67  static vtkLoopSubdivisionFilter *New();
70 
71 protected:
74 
75  int GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData,
76  vtkPoints *outputPts,
77  vtkPointData *outputPD) override;
78  int GenerateEvenStencil (vtkIdType p1, vtkPolyData *polys,
79  vtkIdList *stencilIds, double *weights);
80  void GenerateOddStencil (vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
81  vtkIdList *stencilIds, double *weights);
82 
84 
85 private:
87  void operator=(const vtkLoopSubdivisionFilter&) = delete;
88 };
89 
90 #endif
91 // VTK-HeaderTest-Exclude: vtkLoopSubdivisionFilter.h
represent and manipulate point attribute data
Definition: vtkPointData.h:37
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:347
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
list of point or cell ids
Definition: vtkIdList.h:36
generate a subdivision surface using an Approximating Scheme
Store zero or more vtkInformation instances.
generate a subdivision surface using the Loop Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:39