VTK  9.2.20230205
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 =========================================================================*/
78 #ifndef vtkLoopSubdivisionFilter_h
79 #define vtkLoopSubdivisionFilter_h
80 
82 #include "vtkFiltersModelingModule.h" // For export macro
83 
84 VTK_ABI_NAMESPACE_BEGIN
85 class vtkPolyData;
86 class vtkIntArray;
87 class vtkPoints;
88 class vtkIdList;
89 
90 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
91 {
92 public:
94 
99  void PrintSelf(ostream& os, vtkIndent indent) override;
101 
102 protected:
104  ~vtkLoopSubdivisionFilter() override = default;
105 
106  int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
107  vtkPointData* outputPD) override;
108  int GenerateEvenStencil(vtkIdType p1, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
110  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
111 
113 
114 private:
116  void operator=(const vtkLoopSubdivisionFilter&) = delete;
117 };
118 
119 VTK_ABI_NAMESPACE_END
120 #endif
generate a subdivision surface using an Approximating Scheme
list of point or cell ids
Definition: vtkIdList.h:144
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:156
generate a subdivision surface using the Loop Scheme
int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) override
~vtkLoopSubdivisionFilter() override=default
vtkLoopSubdivisionFilter()=default
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
static vtkLoopSubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
represent and manipulate point attribute data
Definition: vtkPointData.h:151
represent and manipulate 3D points
Definition: vtkPoints.h:150
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:201
int vtkIdType
Definition: vtkType.h:327