VTK  9.0.2
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 =========================================================================*/
46 #ifndef vtkLoopSubdivisionFilter_h
47 #define vtkLoopSubdivisionFilter_h
48 
50 #include "vtkFiltersModelingModule.h" // For export macro
51 
52 class vtkPolyData;
53 class vtkIntArray;
54 class vtkPoints;
55 class vtkIdList;
56 
57 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
58 {
59 public:
61 
67 
68 protected:
71 
72  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
73  vtkPointData* outputPD) override;
74  int GenerateEvenStencil(vtkIdType p1, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
76  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
77 
79 
80 private:
82  void operator=(const vtkLoopSubdivisionFilter&) = delete;
83 };
84 
85 #endif
86 // VTK-HeaderTest-Exclude: vtkLoopSubdivisionFilter.h
generate a subdivision surface using an Approximating Scheme
list of point or cell ids
Definition: vtkIdList.h:31
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
generate a subdivision surface using the Loop Scheme
int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) override
void GenerateOddStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
int GenerateEvenStencil(vtkIdType p1, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkLoopSubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
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